fixed error message for packages which are not relocateable

CVS patchset: 785
CVS date: 1996/07/11 15:48:21
This commit is contained in:
ewt 1996-07-11 15:48:21 +00:00
parent 2b298ad4c0
commit 09b573f5dc
1 changed files with 6 additions and 0 deletions

View File

@ -145,6 +145,12 @@ int rpmInstallPackage(char * rootdir, rpmdb db, int fd, char * location,
return installSources(rootdir, fd, NULL);
}
/* Do this now so we can give error messages, even though we'll just
do it again after relocating everything */
getEntry(h, RPMTAG_NAME, &type, (void **) &name, &fileCount);
getEntry(h, RPMTAG_VERSION, &type, (void **) &version, &fileCount);
getEntry(h, RPMTAG_RELEASE, &type, (void **) &release, &fileCount);
if (!getEntry(h, RPMTAG_DEFAULTPREFIX, &type, (void *)
&defaultPrefix, &fileCount)) {
defaultPrefix = NULL;