Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

pkgconflict doesn't work with pkgfile 22 #30

Closed
ilpianista opened this issue Mar 24, 2011 · 1 comment
Closed

pkgconflict doesn't work with pkgfile 22 #30

ilpianista opened this issue Mar 24, 2011 · 1 comment
Labels
Milestone

Comments

@ilpianista
Copy link

First, the shebang have to be fixed to point to python2, then if you try to use it, you get:

$ pkgconflict /var/cache/pacman/pkg/aspell-0.60.6-5-x86_64.pkg.tar.xz
Traceback (most recent call last):
File "/usr/bin/pkgconflict", line 89, in
known_files = read_file_lists(FILELIST_DIR)
File "/usr/bin/pkgconflict", line 59, in read_file_lists
packages = os.listdir(repopath)
OSError: [Errno 20] Not a directory: '/var/cache/pkgtools/lists/local.files.tar.gz

@mineo
Copy link
Contributor

mineo commented Mar 25, 2011

These issues are easy to fix (the second one just needs a if not repo.endswith("tar.gz") so the .tar.gz files in /var/cache/pkgtools/lists are ignored). The bigger problem is that the tarfile module does not support xz compression so we can't even get the file list from sys.argv[1].

Daenyth added a commit that referenced this issue Sep 6, 2011
@Daenyth Daenyth closed this as completed Sep 6, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants