Don't dump core on packages with an invalid or empty PLIST.

Reviewed by:	markm
This commit is contained in:
reg 2002-08-26 13:25:48 +00:00
parent a93ec72f8e
commit 153c928216

View File

@ -109,6 +109,10 @@ pkg_do(char *pkg)
}
read_plist(&plist, fp);
fclose(fp);
if (plist.name == NULL) {
warnx("%s does not appear to be a valid package!", pkg);
return 1;
}
/*
* First we check if the installed package has an origin, and try