summaryrefslogtreecommitdiffstats
path: root/urpm/main_loop.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-08 16:57:51 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-08 16:57:51 +0000
commitbc9b5560369b2b94c1be40a5ac518a0f8b3d0f98 (patch)
tree46ee7115cce18045a08f06a8a44fe3f47e298fd9 /urpm/main_loop.pm
parent1996511a162e6b4ee7c4b4a2e325100e483f5519 (diff)
downloadurpmi-bc9b5560369b2b94c1be40a5ac518a0f8b3d0f98.tar
urpmi-bc9b5560369b2b94c1be40a5ac518a0f8b3d0f98.tar.gz
urpmi-bc9b5560369b2b94c1be40a5ac518a0f8b3d0f98.tar.bz2
urpmi-bc9b5560369b2b94c1be40a5ac518a0f8b3d0f98.tar.xz
urpmi-bc9b5560369b2b94c1be40a5ac518a0f8b3d0f98.zip
simplify
Diffstat (limited to 'urpm/main_loop.pm')
-rw-r--r--urpm/main_loop.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/main_loop.pm b/urpm/main_loop.pm
index 224a9909..f9ac014e 100644
--- a/urpm/main_loop.pm
+++ b/urpm/main_loop.pm
@@ -45,7 +45,7 @@ my ($local_sources, $list) = urpm::get_pkgs::selected2list($urpm,
$state->{selected},
clean_other => !$noclean && $urpm->{options}{'pre-clean'},
);
-unless ($local_sources || $list) {
+if (!$local_sources && !$list) {
$urpm->{fatal}(3, N("unable to get source packages, aborting"));
}