diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-01-07 10:30:32 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-01-07 10:30:32 +0000 |
commit | 26e4d906e9e1ba74754bc7122e8c475d93b44712 (patch) | |
tree | e3a65ba78afbfdd7ed732469337a9fc5293689ec /urpmi.spec | |
parent | a9772df421a8e54ed40bb5234263981553101e09 (diff) | |
download | urpmi-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.spec | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |