handle shared source dirs when gathering.

This commit is contained in:
Jesse Keating 2008-03-21 15:56:22 -04:00 committed by Jesse Keating
parent ed5d17207f
commit 51f5969e49
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,6 @@
* Fri Mar 21 2008 Jesse Keating <jkeating@redhat.com>
- Handle shared source directory better.
* Fri Mar 14 2008 Jesse Keating <jkeating@redhat.com>
- Don't pass --prodpath to buildinstall. It won't like it.
- Fix source iso making

View File

@ -332,7 +332,11 @@ class Gather(pypungi.PungiBase):
relpkgdir)
# Ensure the pkgdir exists, force if requested, and make sure we clean it out
pypungi._ensuredir(pkgdir, self.logger, force=self.config.getboolean('default', 'force'), clean=True)
if relpkgdir.endswith('SRPMS'):
# Since we share source dirs with other arches don't clean, but do allow us to use it
pypungi._ensuredir(pkgdir, self.logger, force=True, clean=False)
else:
pypungi._ensuredir(pkgdir, self.logger, force=self.config.getboolean('default', 'force'), clean=True)
probs = self.ayum.downloadPkgs(polist)