rpm4/rpm5 incompat: rpm5 firing on provides
Tomasz Pala
gotar at polanet.pl
Tue Oct 30 17:31:05 CET 2012
On Mon, Oct 29, 2012 at 19:37:27 +0200, Elan Ruusamäe wrote:
> # rpm -q --triggers rc-scripts-0.4.3.3-3.x86_64
> triggerpostun scriptlet (using /bin/sh) -- initscripts
> mv -f /etc/sysconfig/network-scripts/ifcfg-* /etc/sysconfig/interfaces
What do you expect from badly written command?
1. using '-f' within /etc should be punished with -rw, as eventually this leads to
data loss - consider someone having old network-scripts files _this day_,
2. this command _might_ fail, what shall not prevent upgrade (classic || :).
[ "$(echo /etc/sysconfig/network-scripts/ifcfg-*)" != "/etc/sysconfig/network-scripts/ifcfg-*" ] \
&& mv -n /etc/sysconfig/network-scripts/ifcfg-* -t /etc/sysconfig/interfaces
--
Tomasz Pala <gotar at pld-linux.org>
More information about the pld-devel-en
mailing list