Commit 586599c0 authored by Leo's avatar Leo

check for -f APKBUILD instead of the directory

parent b8689852
CHANGES In 17.2:
- Remove line-above-80-chars [AL27], it was broken anyways
- Check for the APKBUILD file instead of just the directory
when trying to find duplicates and packages in other repos.
Fixing a case where remants of a moved package would stay there.
CHANGES in 17.1:
......
......@@ -30,7 +30,7 @@ find_repo() {
# If we found nothing just ignore it
[ -z "$pkgname" ] && return 0
check_in_repo() { test -d "$1"/"$2" && echo "$1" ; }
check_in_repo() { test -f "$1"/"$2"/APKBUILD && echo "$1" ; }
case "$targetrepo" in
testing)
......@@ -82,7 +82,7 @@ find_repo() {
pkgname="${pkgname%-static}"
pkgname="${pkgname%-lang}"
check_in_repo() { test -d "$1"/"$2" && echo "$1" ; }
check_in_repo() { test -f "$1"/"$2"/APKBUILD && echo "$1" ; }
case "$targetrepo" in
testing)
......@@ -104,7 +104,7 @@ fi
find_dupe() {
local pkgname="$1" repo="$2" r=
check_in_repo() { test -d "$1"/"$2" && echo "$1" ; }
check_in_repo() { test -f "$1"/"$2"/APKBUILD && echo "$1" ; }
for r in unmaintained testing community main; do
[ "$r" = "$repo" ] && continue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment