Commit Graph

20 Commits

Author SHA1 Message Date
Natanael Copa 2760f35c57 abump: print what packages failed 2013-07-22 13:57:14 +00:00
Natanael Copa cb21e18921 abump: fix the -f/--fixes option 2013-07-19 12:10:57 +00:00
Natanael Copa e1d629b6c4 abump: fix set -e issue
It appears that when the subshell has a ||, the 'set -e' within
subshell gets invalidated.

This will work as expected:

 ( set -e; false; echo "should not get here" )

While this will not work as expected:

 ( set -e; false; echo "should not get here" ) || false

We resolve it by using $? to detect the status of subshell. We also let
the exitcode indicate how many packages that failed.

While here we also refactor it so most of the loop happens within the
subshell. This lets us set (or increase) rc variable once, and it
reduces number of forks which gives slightly better performance.
2013-07-10 07:14:46 +00:00
Natanael Copa 5021e13ffa Revert "abump: verify APKBUILD's version"
We actually want be able to re-run abump without needing reset the
pkgver in case we had to fix things.

This reverts commit 8198ded868.

Conflicts:
	abump.in
2013-07-10 07:14:46 +00:00
Natanael Copa db00867ceb abump: add missing " 2013-07-09 12:57:20 +00:00
Dubiousjim b2d6b47be1 various: s/echo/msg/, s/echo/error/, tweak error messages 2013-07-09 07:12:56 +00:00
Dubiousjim 9a740d05aa abump: verify that we're in git tree 2013-07-09 07:10:27 +00:00
Dubiousjim 8198ded868 abump: verify APKBUILD's version 2013-07-09 07:09:48 +00:00
Dubiousjim a10203d0fc abump: refactor verification of APKBUILD
* includes renaming pkgname, pkgver
2013-07-09 07:09:29 +00:00
Dubiousjim 78b22a0f78 abump, functions: refactor (and verify) calculation of APKBUILD path 2013-07-09 07:09:05 +00:00
Dubiousjim ecde203930 abump: tweak upgrade/cvelist 2013-07-09 07:08:41 +00:00
Dubiousjim 512d5fd551 abump: move loop inside do_bump, refine locals, introduce subshell 2013-07-09 07:05:32 +00:00
Dubiousjim ef9fb52908 various: use long options, rework usages 2013-07-09 06:59:30 +00:00
Dubiousjim db1314ac55 various: move conf-loading and i/o to functions 2013-07-09 06:44:01 +00:00
Dubiousjim e1339a9b77 various: add descriptions, attribution, license 2013-07-08 14:48:56 +00:00
Natanael Copa ef25c6cf41 abump: add option -f to set "fixes" in commit message 2013-02-14 10:47:08 +01:00
Natanael Copa 52d6af779e abump: add -s option for security updates 2012-02-14 14:53:05 +00:00
Natanael Copa 624d98d599 abump: add -k option to keep existing built packages 2011-09-30 06:45:22 +00:00
Natanael Copa c016772849 abump: add usage and support for recursive abuild 2010-11-19 10:25:15 +00:00
Natanael Copa e1ebd05ce6 abump: install with make install 2010-11-19 10:24:15 +00:00