Mailinglist Archive: opensuse-packaging (151 mails)

< Previous Next >
[opensuse-packaging] error: %post(yum-3.2.8-11.2.x86_64) scriptlet failed
  • From: Werner Flamme <werner.flamme@xxxxxx>
  • Date: Wed, 23 Jan 2008 15:58:24 +0100
  • Message-id: <47975610.1060308@xxxxxx>
Hi,

I updated yum via apt :-) and got:

warning: /etc/yum.repos.d/* moved to /etc/yum/repos.d/*
mv: cannot stat `/etc/yum.repos.d/*': No such file or directory
error: %post(yum-3.2.8-11.2.x86_64) scriptlet failed, exit status 1

Maybe a construct like
NOFFILES=$(LANG=C ls -lR /etc/yum.repos.d/ | tail -n 1 | cut -d' ' -f2)
if [ "$NOFFILES" -ne 0 ]; then ...
will avoid the error? ;-)

Regards,
Werner

--
Werner Flamme, Abt. WKDV
Helmholtz-Zentrum für Umweltforschung GmbH - UFZ
Permoserstr. 15 - 04318 Leipzig
Tel.: (0341) 235-1921 - Fax (0341) 235-451921
http://www.ufz.de - eMail: werner.flamme@xxxxxx
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups