]> git.pld-linux.org Git - projects/pld-ftp-admin.git/commitdiff
- skip generating debuginfo indexes for "noarch" arch
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 27 May 2009 15:41:31 +0000 (15:41 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Wed, 27 May 2009 15:41:31 +0000 (15:41 +0000)
Changed files:
    bin/pfa-genindex -> 1.27

bin/pfa-genindex

index 12d237e8fffe7e75e71254db94a45e773c289585..1780e33412fd13cd976b0e55d0cf9b6d1d5ba14c 100644 (file)
@@ -71,11 +71,11 @@ if do_poldek:
             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 @@ if do_yum:
             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:
This page took 0.098307 seconds and 4 git commands to generate.