give an error w/ we find packages with bad capabilities
CVS patchset: 2959 CVS date: 1999/04/07 00:06:56
This commit is contained in:
parent
1d353c4ac4
commit
4606c34153
12
install.c
12
install.c
|
@ -247,9 +247,19 @@ int doInstall(const char * rootdir, const char ** argv, int transFlags,
|
|||
}
|
||||
}
|
||||
|
||||
rpmtransAddPackage(rpmdep, h, NULL, *filename,
|
||||
rc = rpmtransAddPackage(rpmdep, h, NULL, *filename,
|
||||
(interfaceFlags & INSTALL_UPGRADE) != 0,
|
||||
relocations);
|
||||
if (rc) {
|
||||
if (rc == 1)
|
||||
rpmMessage(RPMMESS_ERROR,
|
||||
_("error reading from file %s\n"), *filename);
|
||||
else if (rc == 2)
|
||||
rpmMessage(RPMMESS_ERROR,
|
||||
_("file %s requires a newer version of RPM\n"),
|
||||
*filename);
|
||||
return numPackages;
|
||||
}
|
||||
|
||||
if (defaultReloc)
|
||||
defaultReloc->oldPath = NULL;
|
||||
|
|
Loading…
Reference in New Issue