]> git.pld-linux.org Git - projects/pld-ftp-admin.git/commitdiff
- generating xml repo data for yum and all other who support it
authorczarny <czarny@pld-linux.org>
Tue, 29 May 2007 07:53:19 +0000 (07:53 +0000)
committerczarny <czarny@pld-linux.org>
Tue, 29 May 2007 07:53:19 +0000 (07:53 +0000)
Changed files:
    bin/pfa-genindex -> 1.11

bin/pfa-genindex

index 382bcb08d843c63178fd8111d159580cc85c46d0..7e7cd7d4c45e8cf8e6fea735121b716ff2f1a9a2 100644 (file)
@@ -49,6 +49,11 @@ 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.
+            # -c cache directory; speeds up generation with files once cached
+            # -p; output human readable (indended) xml files; they get gziped after, so no harm done
+            os.system('%s.stat/bin/createrepo -c %s/tmp/createrepo -p %s%s/%s/RPMS' %
+                        (ftp_dir,home,ftp_dir,tree,arch))
 
 for tree in trees:
     ftpio.unlock(tree)
This page took 0.118422 seconds and 4 git commands to generate.