diff options
author | Michael Schroeder <mls@suse.de> | 2013-05-17 16:32:44 +0200 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2013-05-17 16:32:44 +0200 |
commit | 0424ef2001157e0bf0385da84828a6075c8d291c (patch) | |
tree | 975f8bd1d859e61803f72e485d4713ae4b9b5148 /examples/pysolv | |
parent | 64ff7df719bcabc86c2c81089745dc4aadbe43b6 (diff) | |
download | libsolv-0424ef2001157e0bf0385da84828a6075c8d291c.tar.gz libsolv-0424ef2001157e0bf0385da84828a6075c8d291c.tar.bz2 libsolv-0424ef2001157e0bf0385da84828a6075c8d291c.zip |
allow SOLVID_META queries through SOLVID_POS
Add 'meta' attribute in repo bindings and get rid of no longer neededed
lookup methods.
Diffstat (limited to 'examples/pysolv')
-rwxr-xr-x | examples/pysolv | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/pysolv b/examples/pysolv index 2293ff5..f300d08 100755 --- a/examples/pysolv +++ b/examples/pysolv @@ -418,8 +418,8 @@ class repo_susetags(repo_generic): return True self.handle.add_content(f, 0) print "fetching" - defvendorid = self.handle.lookup_id(solv.SOLVID_META, solv.SUSETAGS_DEFAULTVENDOR) - descrdir = self.handle.lookup_str(solv.SOLVID_META, solv.SUSETAGS_DESCRDIR) + defvendorid = self.handle.meta.lookup_id(solv.SUSETAGS_DEFAULTVENDOR) + descrdir = self.handle.meta.lookup_str(solv.SUSETAGS_DESCRDIR) if not descrdir: descrdir = "suse/setup/descr" (filename, filechksum) = self.find('packages.gz') @@ -510,8 +510,8 @@ class repo_susetags(repo_generic): return True sys.stdout.write("fetching]\n") sys.stdout.flush() - defvendorid = self.handle.lookup_id(solv.SOLVID_META, solv.SUSETAGS_DEFAULTVENDOR) - descrdir = self.handle.lookup_str(solv.SOLVID_META, solv.SUSETAGS_DESCRDIR) + defvendorid = self.handle.meta.lookup_id(solv.SUSETAGS_DEFAULTVENDOR) + descrdir = self.handle.meta.lookup_str(solv.SUSETAGS_DESCRDIR) if not descrdir: descrdir = "suse/setup/descr" filechksum = repodata.lookup_checksum(solv.SOLVID_META, solv.SUSETAGS_FILE_CHECKSUM) @@ -526,7 +526,7 @@ class repo_susetags(repo_generic): return True def packagespath(self): - datadir = repo.handle.lookup_str(solv.SOLVID_META, solv.SUSETAGS_DATADIR) + datadir = repo.handle.meta.lookup_str(solv.SUSETAGS_DATADIR) if not datadir: datadir = 'suse' return datadir + '/' |