Пример #1
0
 def _initInstallRootRepos(self, repoSack, installRoot):
     if installRoot == "/":
         return True
     builder = AinstPackageSackBuilder(installRoot)
     sack = builder.buildInstalledPkgRepoSack()
     if sack is None:
         Log.cout(Log.DEBUG, "Build install pkg sack of %s failed" % installRoot)
         return False
     repoSack.addPackageSack(self.installRootRepoPrefix + installRoot, sack)
     return True
Пример #2
0
 def _initInstallRootRepos(self, repoSack, installRoot):
     if installRoot == '/':
         return True
     builder = AinstPackageSackBuilder(installRoot)
     sack = builder.buildInstalledPkgRepoSack()
     if sack is None:
         Log.cout(Log.DEBUG,
                  'Build install pkg sack of %s failed' % installRoot)
         return False
     repoSack.addPackageSack(self.installRootRepoPrefix + installRoot, sack)
     return True