Christoph Thiel wrote:
> Any patch to the specfile will be greatly appreciated ;)
Problems is that expression /etc/yum.repos.d/* will expand to
/etc/yum.repos.d/* when there are no files in /etc/yum.repos.d
directory. Short hack is attached (not tested though :))
--
Best Regards / S pozdravom,
Pavol RUSNAK SUSE LINUX, s.r.o
Package Maintainer Lihovarska 1060/12
PGP 0xA6917144 19000 Praha 9, CR
prusnak[at]suse.cz http://www.suse.cz
--- yum.spec
+++ yum.spec
@@ -136,10 +136,11 @@ if [ -e "$OCONF" ] ; then
mv "$OCONF" "$NCONF"
fi
# migrate /etc/yum.repos.d to /etc/yum/repos.d/
-if [ -e "/etc/yum.repos.d" ] ; then
+if [ -d "/etc/yum.repos.d" ] ; then
if [ ! -d "/etc/yum/repos.d" ] ; then
mkdir "/etc/yum/repos.d"
fi
+ if [ "/etc/yum.repos.d/*" != '/etc/yum.repos.d/*']; then
for i in /etc/yum.repos.d/*;
do
NCONF="/etc/yum/repos.d/`basename $i`"
@@ -152,6 +153,7 @@ if [ -e "/etc/yum.repos.d" ] ; then
echo "warning: $OCONF moved to $NCONF" >&2
mv "$OCONF" "$NCONF"
done
+ fi
fi
%clean