PATCH don't create RPMS/ dir when splitting the tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch does what the subjet says, and removes other things that would look 
for a RPMS dir.  I tested this with pungi, seems to work as expected.


-- 
Jesse Keating
Release Engineer: Fedora
--- ./scripts/splittree.py.jk	2007-03-07 15:46:24.000000000 -0500
+++ ./scripts/splittree.py	2007-03-07 15:56:15.000000000 -0500
@@ -204,7 +204,7 @@
                 p.close()
                 filelist = string.split(filelist)
                 
-                p = os.popen('find %s/ -type d -not -name RPMS -not -name SRPMS' % self.dist_dir, 'r')
+                p = os.popen('find %s/ -type d -not -name SRPMS' % self.dist_dir, 'r')
                 dirlist = p.read()
                 p.close()
                 dirlist = string.split(dirlist)
@@ -227,11 +227,7 @@
                     except OSError, (errno, msg):
                         pass
 
-                # now create the product/RPMS dir
-                os.makedirs("%s-disc%d/%s/RPMS" % (self.dist_dir, i, self.product_path))
-                
             else:
-                os.makedirs("%s-disc%d/%s/RPMS" % (self.dist_dir, i, self.product_path))
                 self.linkFiles(self.dist_dir, "%s-disc%d" %(self.dist_dir, i), self.common_files)
             self.createDiscInfo(i)
             
@@ -250,10 +246,7 @@
         
         packages = {}
 
-        if os.path.isdir("%s/%s/RPMS" %(self.dist_dir, self.product_path)):
-            pkgdir = "%s/RPMS" %(self.product_path, )
-        else:
-            pkgdir = "%s" %(self.product_path,)
+        pkgdir = "%s" %(self.product_path,)
             
         rpmlist = os.listdir("%s/%s" %(self.dist_dir, pkgdir))
         rpmlist.sort()

Attachment: pgpoocaWfblyq.pgp
Description: PGP signature


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux