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 | |
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
-rwxr-xr-x | gendistrib | 10 | ||||
-rw-r--r-- | rpmtools.spec | 6 |
2 files changed, 10 insertions, 6 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"; diff --git a/rpmtools.spec b/rpmtools.spec index e903c66..9460584 100644 --- a/rpmtools.spec +++ b/rpmtools.spec @@ -1,5 +1,5 @@ %define name rpmtools -%define release 8mdk +%define release 9mdk # do not modify here, see Makefile in the CVS %define version 4.5 @@ -55,6 +55,10 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/*/* %changelog +* Mon Mar 10 2003 François Pons <fpons@mandrakesoft.com> 4.5-9mdk +- add support for noauto: flag in hdlists file. +- made gendistrib perl_checker compliant. + * Thu Feb 20 2003 François Pons <fpons@mandrakesoft.com> 4.5-8mdk - fixed bug 414. |