1. Michał Górny
  2. flaggie
Issue #2 resolved

if there is a dir in '/etc/portage/package.use' flaggie will fail

jinleileiking
created an issue
➜  ~ git:(master) ✗ ls /etc/portage/package.use
00-sabayon.package.use

➜  ~ git:(master) ✗ sudo flaggie openocd +segger
Password: 
Traceback (most recent call last):
  File "/usr/bin/flaggie-python2.7", line 25, in <module>
    sys.exit(main(sys.argv))
  File "/usr/lib64/python2.7/site-packages/flaggie/cli.py", line 199, in main
    actset(pfiles)
  File "/usr/lib64/python2.7/site-packages/flaggie/action.py", line 246, in __call__
    a(self.pkgs, pfiles)
  File "/usr/lib64/python2.7/site-packages/flaggie/action.py", line 157, in __call__
    f = self.grab_effective_entry(p, arg, pfiles[ns], rw = True)
  File "/usr/lib64/python2.7/site-packages/flaggie/action.py", line 124, in grab_effective_entry
    for pe in entries:
  File "/usr/lib64/python2.7/site-packages/flaggie/packagefile.py", line 314, in __getitem__
    for e in self:
  File "/usr/lib64/python2.7/site-packages/flaggie/packagefile.py", line 293, in __iter__
    for f in reversed(self.files):
  File "/usr/lib64/python2.7/site-packages/flaggie/packagefile.py", line 213, in files
    self.read()
  File "/usr/lib64/python2.7/site-packages/flaggie/packagefile.py", line 255, in read
    self._files.append(self.PackageFile(path))
  File "/usr/lib64/python2.7/site-packages/flaggie/packagefile.py", line 112, in __init__
    f = codecs.open(path, 'r', 'utf8')
  File "/usr/lib64/python2.7/codecs.py", line 881, in open
    file = __builtin__.open(filename, mode, buffering)
IOError: [Errno 21] Is a directory: '/etc/portage/package.use/00-sabayon.package.use'

typically in sabayon

Comments (4)

  1. Log in to comment