[Pkg-debile-commits] [debile-master] 24/26: Safer code when moving source package to the pool
Sylvestre Ledru
sylvestre at alioth.debian.org
Tue Aug 20 16:22:40 UTC 2013
This is an automated email from the git hooks/post-receive script.
sylvestre pushed a commit to branch master
in repository debile-master.
commit 438a39cf287bfc8a6e771c5cd88c37b2028fb7c8
Author: Léo Cavaillé <leo at cavaille.net>
Date: Fri Aug 16 14:49:25 2013 +0200
Safer code when moving source package to the pool
---
lucy/incoming.py | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/lucy/incoming.py b/lucy/incoming.py
index 32980e5..679e573 100644
--- a/lucy/incoming.py
+++ b/lucy/incoming.py
@@ -84,10 +84,13 @@ def accept_source(changes):
dsc=dsc,
run=run_nb)
session.add(s)
- session.commit()
- path = move_to_pool_source(s, changes)
- os.unlink(changes.get_filename())
+ try:
+ path = move_to_pool_source(s, changes)
+ os.unlink(changes.get_filename())
+ session.commit()
+ except:
+ session.rollback()
#send_mail("ACCEPTED: {source}/{version} for {owner} as {_id}".format(
# **obj), who['email'], "ACCEPTED!")
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-master.git
More information about the Pkg-debile-commits
mailing list