summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-02-13 13:21:46 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-02-13 13:21:46 +0000
commit6c2023f0fd255166aae8e30fdfe81094cd70dc5b (patch)
treefc496dc4cdd8291325cee2cb7b2422cf5be942a6 /urpmq
parent5cda058a27dab4b7bda4f0b2fce18d07517e82b2 (diff)
downloadurpmi-6c2023f0fd255166aae8e30fdfe81094cd70dc5b.tar
urpmi-6c2023f0fd255166aae8e30fdfe81094cd70dc5b.tar.gz
urpmi-6c2023f0fd255166aae8e30fdfe81094cd70dc5b.tar.bz2
urpmi-6c2023f0fd255166aae8e30fdfe81094cd70dc5b.tar.xz
urpmi-6c2023f0fd255166aae8e30fdfe81094cd70dc5b.zip
Make --ignorearch really work by overriding a package subroutine (not very
clean, but fast)
Diffstat (limited to 'urpmq')
-rwxr-xr-xurpmq4
1 files changed, 3 insertions, 1 deletions
diff --git a/urpmq b/urpmq
index 195ecc81..d58d38ab 100755
--- a/urpmq
+++ b/urpmq
@@ -131,6 +131,9 @@ if ($urpm::args::options{env}) {
$urpm->{statedir} = $urpm::args::options{env};
}
+#- should we ignore arch compatibility
+if ($urpm::args::options{ignorearch}) { urpm::shunt_ignorearch() }
+
$urpm::args::options{upgrade} && !$urpm::args::options{env} && !$urpm::args::options{nolock}
and $urpm->shlock_rpm_db;
$urpm::args::options{nolock} or $urpm->shlock_urpmi_db;
@@ -200,7 +203,6 @@ if ($urpm::args::options{list_aliases}) {
fuzzy => $urpm::args::options{fuzzy},
caseinsensitive => $urpm::args::options{caseinsensitive},
all => $urpm::args::options{all},
- ignorearch => $urpm::args::options{ignorearch},
) or $urpm::args::options{force}
or exit 1;
}