[yum-commits] find-repos-of-install.py
James Antill
james at osuosl.org
Fri May 1 19:58:16 UTC 2009
find-repos-of-install.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 0e8c21c0a988587cd5de482e1d623f724654569e
Author: James Antill <james at and.org>
Date: Fri May 1 15:57:53 2009 -0400
Rename yumdb.repoid to yumdb.from_repo
diff --git a/find-repos-of-install.py b/find-repos-of-install.py
index 00f1137..5d71747 100644
--- a/find-repos-of-install.py
+++ b/find-repos-of-install.py
@@ -106,8 +106,8 @@ else:
pkgs = my.rpmdb
for ipkg in sorted(pkgs):
- if 'repoid' in ipkg.yumdb_info:
- print '%s from repo %s' % (ipkg, ipkg.yumdb_info.repoid)
+ if 'from_repo' in ipkg.yumdb_info:
+ print '%s from repo %s' % (ipkg, ipkg.yumdb_info.from_repo)
continue
apkgs = my.pkgSack.searchPkgTuple(ipkg.pkgtup)
@@ -116,7 +116,7 @@ for ipkg in sorted(pkgs):
else:
apkg = apkgs[0]
if opts.sync2yumdb: # and hasattr(ipkg, 'yumdb_info'): for compat. ?
- ipkg.yumdb_info.repoid = apkg.repoid
+ ipkg.yumdb_info.from_repo = apkg.repoid
print '%s from repo %s' % (ipkg, apkg.repoid)
More information about the Yum-commits
mailing list