The "install" and "changelog" entries for a package  in the local
database are now checked for changes with -Qkk.

Signed-off-by: Allan McRae <al...@archlinux.org>
---
 src/pacman/check.c |   15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/src/pacman/check.c b/src/pacman/check.c
index be84dd6..e9ccdc8 100644
--- a/src/pacman/check.c
+++ b/src/pacman/check.c
@@ -221,8 +221,19 @@ int check_pkg_full(alpm_pkg_t *pkg)
                mode_t type;
                size_t file_errors = 0;
 
-               /* TODO: ignoring special files for the moment */
-               if(*path == '.') {
+               if(strcmp(path, ".INSTALL") == 0) {
+                       char filename[PATH_MAX];
+                       snprintf(filename, PATH_MAX, "%slocal/%s-%s/install",
+                                       alpm_option_get_dbpath(config->handle) 
+ 1,
+                                       pkgname, alpm_pkg_get_version(pkg));
+                       archive_entry_set_pathname(entry, filename);
+               } else if(strcmp(path, ".CHANGELOG") == 0) {
+                       char filename[PATH_MAX];
+                       snprintf(filename, PATH_MAX, "%slocal/%s-%s/changelog",
+                                       alpm_option_get_dbpath(config->handle) 
+ 1,
+                                       pkgname, alpm_pkg_get_version(pkg));
+                       archive_entry_set_pathname(entry, filename);
+               } else if(*path == '.') {
                        continue;
                }
 
-- 
1.7.10.1


Reply via email to