summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xxrevbump6
1 files changed, 5 insertions, 1 deletions
diff --git a/xrevbump b/xrevbump
index a46c2cf..a9c80ff 100755
--- a/xrevbump
+++ b/xrevbump
@@ -23,9 +23,11 @@ bump() {
 		t="$t/template"
 	elif [ -f "srcpkgs/$t/template" ]; then
 		t="srcpkgs/$t/template"
+	elif [ -f "$XBPS_DISTDIR/srcpkgs/$1/template" ]; then
+		t="$XBPS_DISTDIR/srcpkgs/$1/template"
 	else
 		printf "Cannot find template '%s'\n" "$t"
-		break
+		return
 	fi
 
 	. "$t"
@@ -45,6 +47,8 @@ bump() {
 	esac
 }
 
+XBPS_DISTDIR="$(xdistdir)"
+
 if [ "$1" = - ]; then
 	while IFS="$nl" read -r t; do
 		bump "$t"