]> git.pld-linux.org Git - projects/pld-ftp-admin.git/commitdiff
YUM create repo is SLOW AS HELL so now it's run after all poldek indexes creation
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 17 Jun 2007 17:05:10 +0000 (17:05 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 17 Jun 2007 17:05:10 +0000 (17:05 +0000)
Changed files:
    bin/pfa-genindex -> 1.13

bin/pfa-genindex

index d3e62da62c2b9fd1870572cd00db1fc8d046004e..e00499788b37b7ec116fcae4218b16b0dbcea4cd 100644 (file)
@@ -49,9 +49,13 @@ for tree in trees:
             if config.poldek_indexes != "new":
                 os.system('%s.stat/bin/poldek-new --cachedir=%s/tmp/poldek --conf %s.stat/etc/poldek.conf -s %s%s/%s/RPMS/ --mkidxz --mkidx-type pdir' %
                         (ftp_dir,home,ftp_dir,ftp_dir,tree,arch))
-            # Creating indexes for yum and other supporting xml repodata.
-            os.system('%s.stat/bin/createrepo --cache %s/tmp/createrepo %s%s/%s/RPMS' %
-                        (ftp_dir,home,ftp_dir,tree,arch))
+for tree in trees:
+    print '-------------------------- %s --------------------------' % tree
+    for arch in all_ftp_archs:
+        print 'ARCHITECTURE: %s' % arch
+        # Creating indexes for yum and other supporting xml repodata.
+        os.system('%s.stat/bin/createrepo --cache %s/tmp/createrepo %s%s/%s/RPMS' %
+                (ftp_dir,home,ftp_dir,tree,arch))
 
 for tree in trees:
     ftpio.unlock(tree)
This page took 0.033647 seconds and 4 git commands to generate.