Hi. I have another suggestion: it would be nice (for the sake of saving disk space) if approx-import provided a switch to delete the files that are already succesfully imported into the cache. This would make approx even better, especially for systems with limited amount of disk space. Thanks, Rogério Brito.
retitle 519498 approx-import: delete "original" files that were successfully imported in order to save disk space thanks Hi there, once again, Eric. I am not sure if what I wrote here is clear, but I just wanted to retitle the bug and make an extra comment that it would be reasonably easy to implement this feature. approx-import could implement a command line switch such that, for each file that were succesfully imported into the cache, it would call unlink(2) on the original one, to help save space for those migrating to approx from other systems (like, for instance, apt-move). This would be very nice to have in approx. Thanks, Rogério Brito.
I thought I replied to the original bug filing, but I guess I didn't -- sorry. The implementation difficulty is because approx-import runs as the "approx" user, so that it can write to the approx cache. But the approx user is unlikely to be able to unlink the original files -- they're almost certainly owned by someone else. It's not impossible (obviously). But the changes are a little more far-reaching than just calling unlink after each import. Cheers, Eric