From Bugzilla Helper: User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.2.16-22 i686) If I try to upgrada a bad package (e.g. incomplete download) rpm will give the correct error, but the exit code is 0. Reproducible: Always Steps to Reproduce: [root@soliton tmp]# touch glibc-2.2.1-6.i686.rpm; ls -l glibc-2.2.1-6.i686.rpm -rw-r--r-- 1 root root 0 Feb 9 19:46 glibc-2.2.1-6.i686.rpm [root@soliton tmp]# rpm -U glibc-2.2.1-6.i686.rpm; echo $? error: glibc-2.2.1-6.i686.rpm does not appear to be a RPM package 0 Expected Results: exit code > 0
We (Red Hat) should really try to resolve this before next release.
Fixed in rpm-4.0.2-0.36.
BTW: Shouldnt it read "does not appear to be an RPM package"? (a-> an)
*** Bug 3179 has been marked as a duplicate of this bug. ***