summaryrefslogtreecommitdiffstats
path: root/urpmi.spec
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-03-06 21:48:53 +0000
committerFrancois Pons <fpons@mandriva.com>2003-03-06 21:48:53 +0000
commita4d186befdf62f716db20ace521636fb58fb7b8e (patch)
tree464fdb6dda9778fcc147b2262683663cf73e265f /urpmi.spec
parentb3721a035be08860825621da662ddfbc83d25358 (diff)
downloadurpmi-a4d186befdf62f716db20ace521636fb58fb7b8e.tar
urpmi-a4d186befdf62f716db20ace521636fb58fb7b8e.tar.gz
urpmi-a4d186befdf62f716db20ace521636fb58fb7b8e.tar.bz2
urpmi-a4d186befdf62f716db20ace521636fb58fb7b8e.tar.xz
urpmi-a4d186befdf62f716db20ace521636fb58fb7b8e.zip
fix %%post (30mdk)
Diffstat (limited to 'urpmi.spec')
-rw-r--r--urpmi.spec22
1 files changed, 9 insertions, 13 deletions
diff --git a/urpmi.spec b/urpmi.spec
index 297807c3..e8fced9a 100644
--- a/urpmi.spec
+++ b/urpmi.spec
@@ -2,7 +2,7 @@
Name: urpmi
Version: 4.2
-Release: 29mdk
+Release: 30mdk
License: GPL
Source0: %{name}.tar.bz2
Source1: %{name}.logrotate
@@ -124,18 +124,11 @@ if [ "$1" = "0" ]; then
fi
exit 0
-%post
-cd /var/lib/urpmi
-rm -f compss provides depslist*
-misconfigured=0
-for hdlist in hdlist.*; do
- if [ -s "$hdlist" -a ! -s "synthesis.$hdlist" ]; then
- misconfigured=1
- fi
-done
-if [ -z "$DURING_INSTALL" -a "$misconfigured" -ge 1 ]; then
- rm -f synthesis.hdlist.* && %{_sbindir}/urpmi.update -a
-fi
+%post -p /usr/bin/perl
+use urpm;
+$urpm = new urpm;
+$urpm->read_config;
+$urpm->update_media;
#%preun -n autoirpm
#[ -x %{_sbindir}/autoirpm.uninstall ] && %{_sbindir}/autoirpm.uninstall
@@ -206,6 +199,9 @@ fi
%changelog
+* Thu Mar 6 2003 Pons François <fpons@mandrakesoft.com> 4.2-30mdk
+- fixed %%post script to be simpler and much faster.
+
* Thu Mar 6 2003 François Pons <fpons@mandrakesoft.com> 4.2-29mdk
- reworked po generation completely due to missing translations
now using perl_checker. (pablo)