diff options
author | Francois Pons <fpons@mandriva.com> | 2003-03-10 10:39:03 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2003-03-10 10:39:03 +0000 |
commit | 1396714213b64d4b587c29125042f8b44a824690 (patch) | |
tree | cf892b5d671b09ff1711c7e30effbf25ec5df5b3 /gendistrib | |
parent | 7bb571505fdd3267b7446e9642ba0d2235e50292 (diff) | |
download | rpmtools-1396714213b64d4b587c29125042f8b44a824690.tar rpmtools-1396714213b64d4b587c29125042f8b44a824690.tar.gz rpmtools-1396714213b64d4b587c29125042f8b44a824690.tar.bz2 rpmtools-1396714213b64d4b587c29125042f8b44a824690.tar.xz rpmtools-1396714213b64d4b587c29125042f8b44a824690.zip |
4.5-9mdk4.5.9
Diffstat (limited to 'gendistrib')
-rwxr-xr-x | gendistrib | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -39,7 +39,7 @@ foreach (<F>) { chomp; s/\s*#.*$//; /^\s*$/ and next; - m/^\s*(hdlist\S*\.cz2?)\s+(\S+)\s*(.*)$/ or die "invalid hdlist description \"$_\" in hdlists file"; + m/^\s*(?:noauto:)?(hdlist\S*\.cz2?)\s+(\S+)\s*(.*)$/ or die "invalid hdlist description \"$_\" in hdlists file"; push @hdlists, { synthesis => "$root/Mandrake/base/synthesis.$1", hdlist => "$root/Mandrake/base/$1", dir => $2, descr => $3 }; } @@ -47,12 +47,12 @@ close F; my $headers_dir = ($ENV{TMPDIR} || "/tmp") . "/.build_hdlist"; sub clean_cache { - system(($ENV{LD_LOADER} ? ($ENV{LD_LOADER}) : ()), "rm", "-rf", $headers_dir) unless $noclean; + system($ENV{LD_LOADER} ? $ENV{LD_LOADER} : @{[]}, "rm", "-rf", $headers_dir) unless $noclean; } clean_cache(); -for (0..$#hdlists) { +foreach (0..$#hdlists) { my $e = $hdlists[$_]; my $r; @@ -60,7 +60,7 @@ for (0..$#hdlists) { #- listed in the hdlist file. #- if the number of root is equal the number of medium, assume a medium #- foreach root, else try to find a valid root containing the medium. - if (scalar(@hdlists ) == scalar(@root)) { + if (scalar(@hdlists) == scalar(@root)) { $r = $root[$_]; } else { foreach (@root) { @@ -79,7 +79,7 @@ for (0..$#hdlists) { print STDERR "clean data for second pass\n"; $urpm->unresolved_provides_clean; -for (0..$#hdlists) { +foreach (0..$#hdlists) { my $e = $hdlists[$_]; print STDERR "parsing headers for $e->{descr}\n"; |