diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-06-23 11:20:29 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-06-23 11:20:29 +0000 |
commit | 3f3281c87e123d15284e07e80a6ab5ba751463c9 (patch) | |
tree | cb34de821d80d1e8b21814cd41c08578dbcdd185 /abuild.in | |
parent | 11eb0f69e78191fc092b20fe671685880974b11e (diff) | |
download | abuild-3f3281c87e123d15284e07e80a6ab5ba751463c9.tar.gz abuild-3f3281c87e123d15284e07e80a6ab5ba751463c9.tar.bz2 abuild-3f3281c87e123d15284e07e80a6ab5ba751463c9.tar.xz abuild-3f3281c87e123d15284e07e80a6ab5ba751463c9.zip |
abuild: fix circular dependency for symlink deps
The package should not have itself as dependency.
Diffstat (limited to 'abuild.in')
-rw-r--r-- | abuild.in | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1210,14 +1210,17 @@ scan_symlink_targets() { local symfile= targetpath= cd "$datadir" for symfile in "$pkgbasedir"/.control.*/.symlinks; do - [ -e "$symfile" ] || continue + local d="${symfile%/.symlinks}" + if ! [ -e "$symfile" ] || [ "$d" = "$dir" ]; then + continue + fi + while read symlink target; do if [ "${target#/}" = "$target" ]; then target="${symlink%/*}/$target" fi targetpath="$datadir"/$(normalize_path "$target") if [ -e "$targetpath" ] || [ -L "$targetpath" ]; then - local d="${symfile%/.symlinks}" echo "$name=$pkgver-r$pkgrel" \ >> "$d"/.symlinks-needs fi |