Stop converting relative symlinks to absolute.

There's no reason to make them absolute, simply store in the metadata
the target file as is. This vastly simplifies the code and makes all
test pass correctly.
This commit is contained in:
Juan RP
2015-02-19 11:04:34 +01:00
parent 2f9dd7237b
commit 9ae3638429
7 changed files with 20 additions and 105 deletions

4
NEWS
View File

@@ -3,7 +3,9 @@ xbps-0.44 (???):
* xbps-pkgdb(8): this now uses the code from libxbps to check the target file
of symlinks. This fixes some false positives with symlinks.
* xbps-create(8): properly detect target of relative symlinks in some cases.
* xbps-create(8): relative target file of symlinks aren't converted to absolute
anymore. This just stores what the symlink points to, does not matter if
it's relative or absolute path.
* libxbps: make sure that symlinks with relative target are detected and removed
properly. Fix #78: https://github.com/voidlinux/xbps/issues/78