1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00

* Added a check for .FILELIST for package validity in addition to .PKGINFO

This commit is contained in:
Aaron Griffin 2007-01-22 16:16:51 +00:00
parent 0635e03869
commit 000256cbc5

View File

@ -339,6 +339,9 @@ pmpkg_t *_alpm_pkg_load(char *pkgfile)
if(!config) { if(!config) {
_alpm_log(PM_LOG_ERROR, _("missing package info file in %s"), pkgfile); _alpm_log(PM_LOG_ERROR, _("missing package info file in %s"), pkgfile);
goto error; goto error;
} else if(!filelist) {
_alpm_log(PM_LOG_ERROR, _("missing package filelist in %s"), pkgfile);
goto error;
} }
/* internal */ /* internal */