bugfix: update-packages of the urpmi backend

This commit is contained in:
Aurelien Lefebvre 2008-06-09 16:57:39 +02:00
parent 9d55f92d38
commit 250bc738f2

View File

@ -17,11 +17,12 @@ use urpmi_backend::tools;
use urpmi_backend::open_db;
use urpmi_backend::actions;
# This script call only be called with one argument (the package id)
exit if($#ARGV != 0);
# This with one or more package ids
exit if($#ARGV < 0);
my @names;
foreach(split(/\|/, $ARGV[0])) {
foreach(@ARGV) {
print "-->", $_, "<--", "\n";
my @pkgid = split(/;/, $_);
push @names, $pkgid[0];
}