Author: glen                         Date: Wed May 27 15:41:36 2009 GMT
Module: pld-ftp-admin                 Tag: HEAD
---- Log message:
- skip generating debuginfo indexes for "noarch" arch

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

---- Diffs:

================================================================
Index: pld-ftp-admin/scripts/gen-indexes.py
diff -u pld-ftp-admin/scripts/gen-indexes.py:1.26 
pld-ftp-admin/scripts/gen-indexes.py:1.27
--- pld-ftp-admin/scripts/gen-indexes.py:1.26   Wed May 27 00:46:01 2009
+++ pld-ftp-admin/scripts/gen-indexes.py        Wed May 27 17:41:31 2009
@@ -71,11 +71,11 @@
             print 'generate poldek index for %s' % arch
             if config.poldek_indexes != "old":
                 os.system('%s -s %s%s/%s/RPMS/ --mkidxz --mkidx-type pndir' % 
(poldek, ftp_dir, tree, arch))
-                if config.separate_debuginfo:
+                if arch != 'noarch' and config.separate_debuginfo:
                     os.system('%s -s %s%s/%s/debuginfo/ --mkidxz --mkidx-type 
pndir' % (poldek, ftp_dir, tree, arch))
             if config.poldek_indexes != "new":
                 os.system('%s -s %s%s/%s/RPMS/ --mkidxz --mkidx-type pdir' % 
(poldek, ftp_dir, tree, arch))
-                if config.separate_debuginfo:
+                if arch != 'noarch' and config.separate_debuginfo:
                     os.system('%s -s %s%s/%s/debuginfo/ --mkidxz --mkidx-type 
pdir' % (poldek, ftp_dir, tree, arch))
 
 if do_yum:
@@ -88,7 +88,7 @@
             print 'generate repodata for %s using createrepo' % arch
             # Creating indexes for yum and other supporting xml repodata.
             os.system('time %s --cache %s-%s %s%s/%s/RPMS' % (yum, cachedir, 
arch, ftp_dir, tree, arch))
-            if config.separate_debuginfo:
+            if arch != 'noarch' and config.separate_debuginfo:
                 os.system('time %s --cache %s-%s %s%s/%s/debuginfo' % (yum, 
cachedir, arch, ftp_dir, tree, arch))
 
 if do_rpmrepo:
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-ftp-admin/scripts/gen-indexes.py?r1=1.26&r2=1.27&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to