Skip to content

Commit

Permalink
bump_hp: don't delete just generated ebuild even if requested
Browse files Browse the repository at this point in the history
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
  • Loading branch information
Sergei Trofimovich committed Dec 15, 2012
1 parent 808bbe4 commit 15fe0a6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/bump_hp
Original file line number Diff line number Diff line change
Expand Up @@ -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)")")
Expand All @@ -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.