aboutsummaryrefslogtreecommitdiffstats
path: root/rpmtools.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2000-11-16 16:28:11 +0000
committerFrancois Pons <fpons@mandriva.com>2000-11-16 16:28:11 +0000
commit35aa8709d5c06f8ec1da5732007a95e11cbc5f73 (patch)
tree3552e5ce53f8d5422c438de4c829273e787cba20 /rpmtools.pm
parentc090103afa74f8f6a6b013223883c0c06d98b8de (diff)
downloadrpmtools-35aa8709d5c06f8ec1da5732007a95e11cbc5f73.tar
rpmtools-35aa8709d5c06f8ec1da5732007a95e11cbc5f73.tar.gz
rpmtools-35aa8709d5c06f8ec1da5732007a95e11cbc5f73.tar.bz2
rpmtools-35aa8709d5c06f8ec1da5732007a95e11cbc5f73.tar.xz
rpmtools-35aa8709d5c06f8ec1da5732007a95e11cbc5f73.zip
*** empty log message ***
Diffstat (limited to 'rpmtools.pm')
-rw-r--r--rpmtools.pm16
1 files changed, 11 insertions, 5 deletions
diff --git a/rpmtools.pm b/rpmtools.pm
index b3bc6d9..6805fd0 100644
--- a/rpmtools.pm
+++ b/rpmtools.pm
@@ -154,7 +154,9 @@ sub compute_depslist {
}
}
#- setup, filesystem and basesystem should be at the beginning.
- @ordered{qw(setup filesystem basesystem)} = (30000, 20000, 10000);
+ @ordered{qw(ld.so readline termcap libtermcap bash sash glibc
+ setup filesystem basesystem)} =
+ (100000, 90000, 80000, 70000, 60000, 50000, 40000, 30000, 20000, 10000);
#- compute base flag, consists of packages which are required without
#- choices of basesystem and are ALWAYS installed. these packages can
@@ -208,7 +210,8 @@ sub read_depslist {
my ($params, $FILE) = @_;
my $global_id = scalar @{$params->{depslist}};
- foreach (<$FILE>) {
+ local $_;
+ while (<$FILE>) {
chomp; /^\s*#/ and next;
my ($name, $version, $release, $size, $deps) = /^(\S*)-([^-\s]+)-([^-\s]+)\s+(\d+)\s*(.*)/;
@@ -290,7 +293,8 @@ sub write_depslist {
sub read_provides_files {
my ($params, $FILE) = @_;
- foreach (<$FILE>) {
+ local $_;
+ while (<$FILE>) {
chomp;
my ($k, @v) = split ':';
$k =~ /^\// and $params->{provides}{$k} ||= undef;
@@ -332,7 +336,8 @@ sub keep_only_cleaned_provides_files {
sub read_provides {
my ($params, $FILE) = @_;
- foreach (<$FILE>) {
+ local $_;
+ while (<$FILE>) {
chomp;
my ($k, @v) = split ':';
$params->{provides}{$k} = @v > 0 ? \@v : undef;
@@ -354,7 +359,8 @@ sub read_compss {
my ($params, $FILE) = @_;
my $p;
- foreach (<$FILE>) {
+ local $_;
+ while (<$FILE>) {
/^\s*$/ || /^#/ and next;
s/#.*//;