本文整理匯總了Python中tracker.Tracker._getSacks方法的典型用法代碼示例。如果您正苦於以下問題:Python Tracker._getSacks方法的具體用法?Python Tracker._getSacks怎麽用?Python Tracker._getSacks使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類tracker.Tracker
的用法示例。
在下文中一共展示了Tracker._getSacks方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1:
# 需要導入模塊: from tracker import Tracker [as 別名]
# 或者: from tracker.Tracker import _getSacks [as 別名]
except yum.Errors.DuplicateRepoError, e:
logging.critical(e)
sys.exit(1)
# setup repos
try:
track.doRepoSetup()
except yum.Errors.RepoError, e:
logging.critical("could not setup repositories: %s" % (e))
sys.exit(1)
# get xml data from repos
if not options.urls:
logging.info("setting up package sacks")
track._getSacks(archlist=archlist)
final_pkgs = {}
pkg_list = []
repoid_list = []
# get list of enabled repos
# need for checking repos in package attrs
for repoid in track.repos.listEnabled():
repoid_list.append(repoid.id)
logging.debug("enabled repos %s" % repoid_list)
# get package downloads
for p in packages:
# append name