Flip the default for nosource.

This commit is contained in:
Jesse Keating 2007-11-30 10:36:28 -05:00 committed by Jesse Keating
parent 669fd7e62b
commit a09b885fd8
2 changed files with 2 additions and 1 deletions

2
pungi
View File

@ -134,7 +134,7 @@ if __name__ == '__main__':
help='the number of discs you want to create (defaults to 1)')
parser.add_option("--nosource", action="store_true", dest="nosource",
help='disable gathering of source packages (optional)')
parser.add_option("--nosplitmedia", action="store_true", dest="nosplitmedia", default=False,
parser.add_option("--nosplitmedia", action="store_false", dest="nosplitmedia", default=True,
help='disable creation of split media (optional)')
parser.add_option("--sourceisos", default=False, action="store_true", dest="sourceisos",
help='Create the source isos (other arch runs must be done)')

View File

@ -123,6 +123,7 @@ class Gather(pypungi.PungiBase):
self.logger.info('URL for repo %s is %s' % (thisrepo.name, thisrepo.baseurl))
thisrepo.basecachedir = self.ayum.conf.cachedir
thisrepo.enablegroups = True
thisrepo.failovermethod = 'priority'
self.ayum.repos.add(thisrepo)
self.ayum.repos.enableRepo(thisrepo.id)
self.ayum._getRepos(thisrepo=thisrepo.id, doSetup = True)