From 777074c5ef13d886c4ea018c2ff0059e9d93692a Mon Sep 17 00:00:00 2001 From: Erick Cafferata Date: Sun, 10 Feb 2019 12:51:20 -0500 Subject: add arch32 support for show command - new behavior will show by default the files available in the arch32 repo or, if not overwritten by the arch32 repo, the ones available in upstream. - In the special case of PKGBUILD, it will only show the 'patch' file in the arch32 repo. - As always, to check the upstream files, add the -u option. --- package.inc.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package.inc.sh b/package.inc.sh index dcdc331..f1b5797 100644 --- a/package.inc.sh +++ b/package.inc.sh @@ -122,6 +122,12 @@ package_show_file() { fi fi + if ! (( OPT_UPSTREAM )); then + local trepo + read -r trepo _ < <(package_get_repos_with_arch "$pkgname" packages32) + [[ $trepo ]] && git show "remotes/packages32/master:$trepo/$pkgname/$file" 2>/dev/null \ + && return + fi git show "remotes/$remote/packages/$pkgname:$subtree$file" } -- cgit v1.2.3-54-g00ecf