Closed adhawkins closed 2 years ago
Thanks Andy. I have fixed the bug and checked the code into GitHub. Please try it out and let me know if I missed anything.
I've installed using pip on an extracted ZIP file of the main branch.
Prune now seems to work, but delete still displays an error:
xcp-alpine-emborg:~# /home/andy/.local/bin/emborg -c paperless-test prune
xcp-alpine-emborg:~# /home/andy/.local/bin/emborg -c paperless-test delete 2022-
03-29-09-22-51
Usage:
emborg compact [options]
which is odd, because I only thought to test the delete
because I saw you'd made the same code change there!
That is strange. I had checked in a version that did not have the fix for delete, only prune. Perhaps you still have that version. Please check line 836 in emborg/command.py. It should look like this:
compact_status = compact.run("compact", [], settings, options)
Specifically, it has []
as the second argument to run, whereas previously it was args
.
If it still says args
try upgrading your repository.
My version does have that. I wonder if the 'local' install is being overridden by the master install I have? Will try removing the packaged version.
Yep, that was it. My mistake. Apologies! Consider this closed.
Okay, I am now working to refine the tests a bit. Previously I added a environment variable to allow me to skip tests that required fuse if fuse was not available. The way I did it was is not considered a best practice for pytest, so I am reworking the missing dependencies feature. When I am done it will also all you to specify --no-fuse
or --borg-version
to the pytest command line to allow you to suppress tests that require either fuse or a particular borg version. When that is done I will update pypi.
I have updated the version to 1.32 and pushed it to pypi.
If I specify
compact_after_delete
in my config, I get an error:If I specifically run compact, it seems to work Ok: