index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2007-11-17 12:56:31 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-11-18 12:36:44 -0600 |
commit | e174865bdc154248b8b8fcf03eaa19da78e0f67b (patch) | |
tree | 895bddc23e4ddf786029c8c5082c8e7cc458f9f2 | |
parent | e28973169d2e5eda8b64ebdda11ece0dc761d978 (diff) |
-rw-r--r-- | src/pacman/package.c | 12 |
diff --git a/src/pacman/package.c b/src/pacman/package.c index b62a1376..b9a323b7 100644 --- a/src/pacman/package.c +++ b/src/pacman/package.c @@ -26,7 +26,6 @@ #include <string.h> #include <limits.h> #include <sys/stat.h> -#include <errno.h> #include <alpm.h> #include <alpm_list.h> @@ -225,7 +224,6 @@ void dump_pkg_files(pmpkg_t *pkg) { const char *pkgname, *root, *filestr; alpm_list_t *i, *pkgfiles; - struct stat buf; char path[PATH_MAX]; pkgname = alpm_pkg_get_name(pkg); @@ -236,18 +234,10 @@ void dump_pkg_files(pmpkg_t *pkg) filestr = (char*)alpm_list_getdata(i); /* build a path so we can stat the filename */ snprintf(path, PATH_MAX-1, "%s%s", root, filestr); - if(!lstat(path, &buf)) { - if(!S_ISDIR(buf.st_mode)) { - /* don't print directories */ - fprintf(stdout, "%s %s\n", pkgname, path); - } - } else { - fprintf(stderr, "%s %s : %s\n", pkgname, path, strerror(errno)); - } + fprintf(stdout, "%s %s\n", pkgname, path); } fflush(stdout); - fflush(stderr); } /* Display the changelog of an installed package |