From 000256cbc58407ac4a27ca27ed09015b14ab99b0 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Mon, 22 Jan 2007 16:16:51 +0000 Subject: [PATCH] * Added a check for .FILELIST for package validity in addition to .PKGINFO --- lib/libalpm/package.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c index 084b9014..eaeca1cd 100644 --- a/lib/libalpm/package.c +++ b/lib/libalpm/package.c @@ -339,6 +339,9 @@ pmpkg_t *_alpm_pkg_load(char *pkgfile) if(!config) { _alpm_log(PM_LOG_ERROR, _("missing package info file in %s"), pkgfile); goto error; + } else if(!filelist) { + _alpm_log(PM_LOG_ERROR, _("missing package filelist in %s"), pkgfile); + goto error; } /* internal */