summaryrefslogtreecommitdiffstats
path: root/perl-install/pkgs.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2000-03-13 18:28:03 +0000
committerFrancois Pons <fpons@mandriva.com>2000-03-13 18:28:03 +0000
commit9266168309a593e84c47cc59edb2a6ccd49e4686 (patch)
tree826858473eae15b943e73ba3980af2417378bf08 /perl-install/pkgs.pm
parentf39f307ded336dddb9a4767b1128b82471446412 (diff)
downloaddrakx-backup-do-not-use-9266168309a593e84c47cc59edb2a6ccd49e4686.tar
drakx-backup-do-not-use-9266168309a593e84c47cc59edb2a6ccd49e4686.tar.gz
drakx-backup-do-not-use-9266168309a593e84c47cc59edb2a6ccd49e4686.tar.bz2
drakx-backup-do-not-use-9266168309a593e84c47cc59edb2a6ccd49e4686.tar.xz
drakx-backup-do-not-use-9266168309a593e84c47cc59edb2a6ccd49e4686.zip
*** empty log message ***
Diffstat (limited to 'perl-install/pkgs.pm')
-rw-r--r--perl-install/pkgs.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm
index c6d7f402e..43dca813c 100644
--- a/perl-install/pkgs.pm
+++ b/perl-install/pkgs.pm
@@ -86,9 +86,9 @@ $PKGS_UNSKIP = 0x10000000;
#- size and deps are grouped to save memory too and make a much
#- simpler and faster depslist reader, this gets (sizeDeps).
sub packageHeaderFile { my ($pkg) = @_; $pkg->{file} }
-sub packageName { my ($pkg) = @_; $pkg->{file} =~ /(.*)-[^-]+-[^-]+/ && $1 or die "invalid file `$pkg->{file}'" }
-sub packageVersion { my ($pkg) = @_; $pkg->{file} =~ /.*-([^-]+)-[^-]+/ && $1 or die "invalid file `$pkg->{file}'" }
-sub packageRelease { my ($pkg) = @_; $pkg->{file} =~ /.*-[^-]+-([^-]+)/ && $1 or die "invalid file `$pkg->{file}'" }
+sub packageName { my ($pkg) = @_; $pkg->{file} =~ /(.*)-[^-]+-[^-]+/ ? $1 : die "invalid file `$pkg->{file}'" }
+sub packageVersion { my ($pkg) = @_; $pkg->{file} =~ /.*-([^-]+)-[^-]+/ ? $1 : die "invalid file `$pkg->{file}'" }
+sub packageRelease { my ($pkg) = @_; $pkg->{file} =~ /.*-[^-]+-([^-]+)/ ? $1 : die "invalid file `$pkg->{file}'" }
sub packageSize { my ($pkg) = @_; to_int($pkg->{sizeDeps}) }
sub packageDepsId { my ($pkg) = @_; split ' ', ($pkg->{sizeDeps} =~ /^\d*\s+(.*)/)[0] }
@@ -752,7 +752,7 @@ sub install($$$;$$) {
#- place (install_steps_gtk.pm,...).
installCallback("Starting installation", $nb, $total);
- my ($i, $min, $medium) = (0, 0, install_any::medium());
+ my ($i, $min, $medium) = (0, 0);
do {
my @transToInstall;