mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
Don't filter package files output based on dir/file status
This caused more problems than it solved, especially with -Qlp output and files that are new to the new package. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
e28973169d
commit
e174865bdc
@ -26,7 +26,6 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <errno.h>
|
|
||||||
|
|
||||||
#include <alpm.h>
|
#include <alpm.h>
|
||||||
#include <alpm_list.h>
|
#include <alpm_list.h>
|
||||||
@ -225,7 +224,6 @@ void dump_pkg_files(pmpkg_t *pkg)
|
|||||||
{
|
{
|
||||||
const char *pkgname, *root, *filestr;
|
const char *pkgname, *root, *filestr;
|
||||||
alpm_list_t *i, *pkgfiles;
|
alpm_list_t *i, *pkgfiles;
|
||||||
struct stat buf;
|
|
||||||
char path[PATH_MAX];
|
char path[PATH_MAX];
|
||||||
|
|
||||||
pkgname = alpm_pkg_get_name(pkg);
|
pkgname = alpm_pkg_get_name(pkg);
|
||||||
@ -236,18 +234,10 @@ void dump_pkg_files(pmpkg_t *pkg)
|
|||||||
filestr = (char*)alpm_list_getdata(i);
|
filestr = (char*)alpm_list_getdata(i);
|
||||||
/* build a path so we can stat the filename */
|
/* build a path so we can stat the filename */
|
||||||
snprintf(path, PATH_MAX-1, "%s%s", root, filestr);
|
snprintf(path, PATH_MAX-1, "%s%s", root, filestr);
|
||||||
if(!lstat(path, &buf)) {
|
fprintf(stdout, "%s %s\n", pkgname, path);
|
||||||
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));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
fflush(stderr);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Display the changelog of an installed package
|
/* Display the changelog of an installed package
|
||||||
|
Loading…
Reference in New Issue
Block a user