forked from Mirror/pmbootstrap
I've replaced all instances in the code of `os.path.abspath` with `os.path.realpath`, as this does the same as `abspath` plus resolving symlinks. See also: https://stackoverflow.com/a/40311142
This commit is contained in:
parent
2f8d589ed6
commit
ff9f2d620f
19 changed files with 24 additions and 24 deletions
|
@ -21,7 +21,7 @@ import sys
|
|||
import pytest
|
||||
|
||||
# Import from parent directory
|
||||
sys.path.append(os.path.abspath(
|
||||
sys.path.append(os.path.realpath(
|
||||
os.path.join(os.path.dirname(__file__) + "/..")))
|
||||
import pmb.build.other
|
||||
import pmb.helpers.logging
|
||||
|
@ -73,7 +73,7 @@ def cache_files_out_of_sync(args, is_out_of_sync):
|
|||
new = []
|
||||
if is_out_of_sync:
|
||||
aport = pmb.build.other.find_aport(args, "hello-world")
|
||||
new = [os.path.abspath(aport + "/APKBUILD")]
|
||||
new = [os.path.realpath(aport + "/APKBUILD")]
|
||||
args.cache["aports_files_out_of_sync_with_git"] = new
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue