summaryrefslogtreecommitdiff
path: root/package.inc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'package.inc.sh')
-rw-r--r--package.inc.sh15
1 files changed, 13 insertions, 2 deletions
diff --git a/package.inc.sh b/package.inc.sh
index f1b5797..4d74278 100644
--- a/package.inc.sh
+++ b/package.inc.sh
@@ -145,9 +145,20 @@ package_list_files() {
subtree=repos/$repo-$OPT_ARCH
fi
+ list_ups=$(git ls-tree -r --name-only "remotes/$remote/packages/$pkgname" "$subtree" \
+ 2>/dev/null | awk -v "prefix=$subtree/" 'sub(prefix, "")')
- git ls-tree -r --name-only "remotes/$remote/packages/$pkgname" "$subtree" |
- awk -v "prefix=$subtree/" 'sub(prefix, "")'
+ if ! (( OPT_UPSTREAM )); then
+ local trepo list_ups list_dwn
+ read -r trepo _ < <(package_get_repos_with_arch "$pkgname" packages32)
+ if [[ $trepo ]]; then
+ list_dwn=$(git ls-tree -r --name-only "remotes/packages32/master" "$trepo/$pkgname" |
+ awk -v "prefix=$trepo/$pkgname/" 'sub(prefix, "")')
+ [[ $list_ups ]] && printf -v list_ups "%s\n%s" "$list_ups" "$list_dwn" \
+ || printf -v list_ups "%s" "$list_dwn"
+ fi
+ fi
+ echo "$list_ups" | sort -u
}
package_patch_arch32() {