Permalink
Browse files

bump_hp: don't delete just generated ebuild even if requested

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
  • Loading branch information...
1 parent 808bbe4 commit 15fe0a60ce7ff026399817040f10b4eae67d96e7 @trofi committed Dec 15, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 bin/bump_hp
View
@@ -37,10 +37,11 @@ pv=$1; shift
[[ ${pv} == --auto ]] && pv=$(get_latest "${pn}")
run hackport merge "$pn"
-run e "${pn}-${pv}.ebuild" clean install
+current_e=${pn}-${pv}.ebuild
+run e "${current_e}" clean install
for rmpv in "$@"; do
- run rm "${rmpv}"
+ [[ ${rmpv} = ${current_e} ]] || run rm "${rmpv}"
done
c=$(basename "$(dirname "$(pwd)")")
@@ -50,4 +51,4 @@ run git add .
run git commit -s -m "${c}/${pn}: bump up to ${pv}" .
run git show -C -M
run repoman full
-run e "${pn}-${pv}.ebuild" clean
+run e "${current_e}" clean

0 comments on commit 15fe0a6

Please sign in to comment.