summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErick Cafferata <erick@cafferata.me>2019-02-08 17:21:07 -0500
committerErick Cafferata <erick@cafferata.me>2019-02-08 17:21:07 -0500
commit5cd27dc16d8b1ae256a97feb70c54490ca4f8d45 (patch)
tree28b7ee1dd8d2d116831a16fcc9b6ad9d17b96f3c
parentae7317b856777e455984d675453d4884d9a59d39 (diff)
downloadasp32-5cd27dc16d8b1ae256a97feb70c54490ca4f8d45.tar.xz
add asp32 support for *log commands
-rw-r--r--package.inc.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/package.inc.sh b/package.inc.sh
index 2650301..dcdc331 100644
--- a/package.inc.sh
+++ b/package.inc.sh
@@ -95,7 +95,13 @@ package_log() {
;;
esac
- git log "${logargs[@]}" "$remote/packages/$pkgname" -- trunk/
+ if ! (( OPT_UPSTREAM )); then
+ repo=$(package_get_repos_with_arch "$pkgname" packages32|awk '{print $1}')
+ [[ $repo ]] && git log "${logargs[@]}" "packages32/master" -- "$repo/$pkgname" \
+ || log_info 'There is no Arch32 patch for %s' "$pkgname"
+ else
+ git log "${logargs[@]}" "$remote/packages/$pkgname" -- trunk/
+ fi
}
package_show_file() {