On Mon, 2007-11-26 at 17:59 -0700, William F. Acker WB2FLW
+1-303-722-7209 wrote:
> >
> http://koji.fedoraproject.org/packages/pungi/1.1.10/1.fc8/data/signed/30c9ecf8/noarch/pungi-1.1.10-1.fc8.noarch.rpm
I had a problem when makes repoview ..
after that I try pungi with this option -BPI
which fails on makedirs every time.
This patch correct this , and is safe to use it, please apply it.
--- /usr/lib/python2.5/site-packages/pypungi/pungi.py.orig 2007-12-01 17:07:13.000000000 +0000
+++ /usr/lib/python2.5/site-packages/pypungi/pungi.py 2007-12-01 18:27:42.000000000 +0000
@@ -178,7 +178,8 @@ class Pungi(pypungi.PungiBase):
for pattern in self.config.get('default', 'relnotedirre').split():
dirres.append(re.compile(pattern))
- os.makedirs(docsdir)
+ if not os.path.exists(docsdir):
+ os.makedirs(docsdir)
# Expload the packages we list as relnote packages
pkgs = os.listdir(os.path.join(self.topdir, self.config.get('default', 'product_path')))
@@ -314,7 +315,8 @@ class Pungi(pypungi.PungiBase):
createrepo.append('--outputdir')
if self.config.getint('default', 'discs') == 1:
- os.makedirs('%s-disc1' % self.topdir) # rename this for single disc
+ if not os.path.exists('%s-disc1' % self.topdir):
+ os.makedirs('%s-disc1' % self.topdir) # rename this for single disc
createrepo.append('%s-disc1' % self.topdir)
createrepo.append('--basedir')
@@ -355,7 +357,8 @@ cost=500
anaruntime = '/usr/lib/anaconda-runtime/boot'
discinfofile = os.path.join(self.topdir, '.discinfo') # we use this a fair amount
- os.makedirs(self.isodir)
+ if not os.path.exists(self.isodir):
+ os.makedirs(self.isodir)
# setup the base command
mkisofs = ['/usr/bin/mkisofs']
--
Fedora-buildsys-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/fedora-buildsys-list