projg2 / flaggie

A smart CLI mangler for package.* files
MIT License
48 stars 7 forks source link

flaggie --migrate-files breaks if there is no /etc/portage/package.keywords #5

Closed mgorny closed 1 year ago

mgorny commented 10 years ago

Originally reported by: jlec (Bitbucket: jlec, GitHub: jlec)


# flaggie --migrate-files
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/flaggie", line 25, in <module>
    sys.exit(main(sys.argv))
  File "/usr/lib64/python2.7/site-packages/flaggie/cli.py", line 201, in main
    pfiles.write()
  File "/usr/lib64/python2.7/site-packages/flaggie/packagefile.py", line 422, in write
    f.write()
  File "/usr/lib64/python2.7/site-packages/flaggie/packagefile.py", line 379, in write
    PackageFileSet.write(*((self,) + args))
  File "/usr/lib64/python2.7/site-packages/flaggie/packagefile.py", line 277, in write
    f.write()
  File "/usr/lib64/python2.7/site-packages/flaggie/packagefile.py", line 181, in write
    os.unlink(self.path)
OSError: [Errno 2] No such file or directory: '/etc/portage/package.keywords'