index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2012-05-07 21:41:15 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2012-12-14 13:45:12 +1000 |
commit | ddd2b9e6f638fa98d02c6c64e2717b175dcb3ae7 (patch) | |
tree | 94016b36650a7d06761a02948e065291e877d54b | |
parent | 01e093d0aee1cf5dad70a6c5fbabb024d960b121 (diff) |
-rw-r--r-- | src/pacman/check.c | 15 |
diff --git a/src/pacman/check.c b/src/pacman/check.c index 17ad7ee6..bdf34b42 100644 --- a/src/pacman/check.c +++ b/src/pacman/check.c @@ -228,8 +228,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; } |