Giter Club home page Giter Club logo

portage-lostfiles's People

Contributors

epsilon-0 avatar gcarq avatar inode64 avatar xdch47 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

portage-lostfiles's Issues

Crashes when a keep file has more than 2 underscores

This happens when CPV is a name like sys-apps/usb_modeswitch. There are still a few packages with an underscore in the name. If they create keep files, this tool fails.

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.11/lostfiles", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3.11/site-packages/lostfiles.py", line 327, in main
    process_directory(dirpath, sorted(filenames), args.strict, tracked)
  File "/usr/lib/python3.11/site-packages/lostfiles.py", line 350, in process_directory
    atom = resolve_pkg_from_keepfile(name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/lostfiles.py", line 391, in resolve_pkg_from_keepfile
    _, category, remainder = filename.split("_")
    ^^^^^^^^^^^^^^^^^^^^^^
ValueError: too many values to unpack (expected 3)

The 'portage<4,>=3' distribution was not found and is required by lostfiles

Running this on a gentoo system produces the following error.

Traceback (most recent call last):
File "/usr/lib/python-exec/python3.11/lostfiles", line 8, in
sys.exit(main())
^^^^^^
File "/usr/lib/python3.11/site-packages/lostfiles.py", line 316, in main
args = parse_args()
^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/lostfiles.py", line 310, in parse_args
version="%(prog)s {}".format(pkg_resources.require("lostfiles")[0].version),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pkg_resources/init.py", line 968, in require
needed = self.resolve(parse_requirements(requirements))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pkg_resources/init.py", line 829, in resolve
dist = self._resolve_dist(
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pkg_resources/init.py", line 870, in _resolve_dist
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'portage<4,>=3' distribution was not found and is required by lostfiles

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.