From: Paul Nasrat Date: Mon, 16 Apr 2007 12:16:35 +0000 (+0100) Subject: Deal with a return value of "-2" when database locking failed. X-Git-Tag: rpm-4.4.2.1-rc1~112 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9b0ef9f4f326c02906a4f9dd636b95fcf3d88553;p=platform%2Fupstream%2Frpm.git Deal with a return value of "-2" when database locking failed. Patch from OpenSuSE --- diff --git a/lib/rpminstall.c b/lib/rpminstall.c index 81574f6..fb17089 100644 --- a/lib/rpminstall.c +++ b/lib/rpminstall.c @@ -599,6 +599,10 @@ if (fileURL[0] == '=') { eiu->numFailed++; goto exit; /*@notreached@*/ /*@switchbreak@*/ break; + default: + eiu->numFailed++; + goto exit; + /*@notreached@*/ /*@switchbreak@*/ break; } eiu->numRPMS++;