[pacman-dev] CVS update of pacman-lib/lib/libalpm (package.c)

Aaron Griffin aaron at archlinux.org
Mon Jan 22 11:16:52 EST 2007


    Date: Monday, January 22, 2007 @ 11:16:52
  Author: aaron
    Path: /home/cvs-pacman/pacman-lib/lib/libalpm

Modified: package.c (1.48 -> 1.49)

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


-----------+
 package.c |    3 +++
 1 file changed, 3 insertions(+)


Index: pacman-lib/lib/libalpm/package.c
diff -u pacman-lib/lib/libalpm/package.c:1.48 pacman-lib/lib/libalpm/package.c:1.49
--- pacman-lib/lib/libalpm/package.c:1.48	Fri Jan 19 18:44:50 2007
+++ pacman-lib/lib/libalpm/package.c	Mon Jan 22 11:16:51 2007
@@ -339,6 +339,9 @@
 	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 */




More information about the pacman-dev mailing list