Skip to content

Alt-Approach Taken: Fix symlink removal

s243a requested to merge s243a/Pkg:fix-symlink-removal into master

Closed use globals instead to return values from pkg_download. See: Merge Request#14 -- " Add Option to Keep Epoch, in repo doc db"

This code works on improving the symlink approach, in order to help both get_deps() and pkg_get() find the downloads. This is more of an issue for pkg_get() then get_deps() but if the symlinks are created in pkg_download() then both of these functions need to be able to find and remove the symlink.

Issue #84, suggests that we should explore other approaches before merging this code. I agree. At this point this is only reference code.

I tested it with my testcode: https://pastebin.com/gZWQiNTM

and it worked for installing octave so that each symlink was removed after each file was installed. Hopefully the code that I pushed to github matched my testcode, aside from debugging statements. I'll do further testing tomorrow.

Edited by s243a

Merge request reports