summaryrefslogtreecommitdiffstats
path: root/urpmi.spec
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-01-07 10:30:32 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-01-07 10:30:32 +0000
commit26e4d906e9e1ba74754bc7122e8c475d93b44712 (patch)
treee3a65ba78afbfdd7ed732469337a9fc5293689ec /urpmi.spec
parenta9772df421a8e54ed40bb5234263981553101e09 (diff)
downloadurpmi-26e4d906e9e1ba74754bc7122e8c475d93b44712.tar
urpmi-26e4d906e9e1ba74754bc7122e8c475d93b44712.tar.gz
urpmi-26e4d906e9e1ba74754bc7122e8c475d93b44712.tar.bz2
urpmi-26e4d906e9e1ba74754bc7122e8c475d93b44712.tar.xz
urpmi-26e4d906e9e1ba74754bc7122e8c475d93b44712.zip
Don't fail in post-install when urpmi wasn't previously installed
Diffstat (limited to 'urpmi.spec')
-rw-r--r--urpmi.spec8
1 files changed, 5 insertions, 3 deletions
diff --git a/urpmi.spec b/urpmi.spec
index 40dd3566..dd36b418 100644
--- a/urpmi.spec
+++ b/urpmi.spec
@@ -156,9 +156,11 @@ exit 0
%post -p /usr/bin/perl
use urpm;
-$urpm = new urpm;
-$urpm->read_config;
-$urpm->update_media(nolock => 1, nopubkey => 1);
+if (-e "/etc/urpmi/urpmi.cfg") {
+ $urpm = new urpm;
+ $urpm->read_config;
+ $urpm->update_media(nolock => 1, nopubkey => 1);
+}
%if %{allow_gurpmi}
%post -n gurpmi