pld-ftp-admin: scripts/gen-indexes.py - generating xml repo data f...

czarny czarny at pld-linux.org
Tue May 29 09:53:24 CEST 2007


Author: czarny                       Date: Tue May 29 07:53:24 2007 GMT
Module: pld-ftp-admin                 Tag: HEAD
---- Log message:
- generating xml repo data for yum and all other who support it

---- Files affected:
pld-ftp-admin/scripts:
   gen-indexes.py (1.10 -> 1.11) 

---- Diffs:

================================================================
Index: pld-ftp-admin/scripts/gen-indexes.py
diff -u pld-ftp-admin/scripts/gen-indexes.py:1.10 pld-ftp-admin/scripts/gen-indexes.py:1.11
--- pld-ftp-admin/scripts/gen-indexes.py:1.10	Fri Sep  9 12:22:15 2005
+++ pld-ftp-admin/scripts/gen-indexes.py	Tue May 29 09:53:19 2007
@@ -49,6 +49,11 @@
             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)
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/pld-ftp-admin/scripts/gen-indexes.py?r1=1.10&r2=1.11&f=u



More information about the pld-cvs-commit mailing list