[PATCH 1/3] Catch exceptions when running commands for a nicer experience when things go wrong - Top-level exception handling was turned off in earlier versions to make debugging easier
[PATCH 2/3] update the readme to make the epel installation step more clear - As requested: http://lists.centos.org/pipermail/centos-devel/2014-July/011321.html
[PATCH 3/3] bump the version number to 0.1 for the first RPM - Since local builds work, this is probably a good place to build the first RPM
--- src/centpkg/__main__.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/centpkg/__main__.py b/src/centpkg/__main__.py index cac69d2..8b1bb76 100644 --- a/src/centpkg/__main__.py +++ b/src/centpkg/__main__.py @@ -67,6 +67,9 @@ def main(): sys.exit(client.args.command()) except KeyboardInterrupt: pass + except Exception, e: + log.error('Could not execute %s: %s' % (client.args.command.__name__, e)) + sys.exit(1)
if __name__ == '__main__': main()
--- README.md | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md index 725b9a4..9ccf916 100644 --- a/README.md +++ b/README.md @@ -12,10 +12,10 @@ tracebacks during development.
-## Installing +## Installing from Git Centpkg currently requires the [EPEL](https://fedoraproject.org/wiki/EPEL) repository for pyrpkg and other dependencies.
- root# <Install and configure EPEL-Release> + root# <Download and configure the relevant epel-release RPM> root# yum install pyrpkg root# git clone https://bitbucket.org/bstinsonmhk/centpkg.git root# cd centpkg @@ -36,10 +36,11 @@ Centpkg currently requires the [EPEL](https://fedoraproject.org/wiki/EPEL) repos $ centpkg sources # Downloads the binary sources from lookaside and checks hashes $ centpkg clean # Removes untracked files
-### rpmbuild Operations +### Build Operations $ centpkg local # Runs a full rpmbuild $ centpkg compile # Runs rpmbuild -bc $ centpkg verify-files # Runs rpmbuild -bl + $ centpkg mockbuild # Runs a local mockbuild
## License
--- setup.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/setup.py b/setup.py index 24456a6..74b6679 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup
setup( name = "centpkg", - version = "0.0.2", + version = "0.1", author = "Brian Stinson", author_email = "bstinson@ksu.edu", description = "CentOS Plugin to rpkg for managing RPM package sources",
On 07/05/2014 04:56 PM, Brian Stinson wrote:
[PATCH 1/3] Catch exceptions when running commands for a nicer experience when things go wrong
- Top-level exception handling was turned off in earlier versions to make debugging easier
[PATCH 2/3] update the readme to make the epel installation step more clear
[PATCH 3/3] bump the version number to 0.1 for the first RPM
- Since local builds work, this is probably a good place to build the first RPM
All 3 pushed
On Sat, Jul 5, 2014 at 5:56 PM, Brian Stinson bstinson@ksu.edu wrote:
[PATCH 1/3] Catch exceptions when running commands for a nicer experience when things go wrong
- Top-level exception handling was turned off in earlier versions to make debugging easier
[PATCH 2/3] update the readme to make the epel installation step more clear
Thank you! The clearer these documents are, the better for everyone.
[PATCH 3/3] bump the version number to 0.1 for the first RPM
- Since local builds work, this is probably a good place to build the first RPM
CentOS-devel mailing list CentOS-devel@centos.org http://lists.centos.org/mailman/listinfo/centos-devel