gcarq / portage-lostfiles Goto Github PK
View Code? Open in Web Editor NEWA simple script to identify files not tracked by Portage package manager
License: GNU General Public License v2.0
A simple script to identify files not tracked by Portage package manager
License: GNU General Public License v2.0
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)
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.