[Pkg-debile-commits] [debile-master] 01/01: Avoid lazy loading an entity. Fixes method prototype

Léo Cavaillé leo.cavaille-guest at alioth.debian.org
Mon Aug 26 08:57:05 UTC 2013


This is an automated email from the git hooks/post-receive script.

leo.cavaille-guest pushed a commit to branch master
in repository debile-master.

commit 2c03d7515b9a86a8c766975e61f3ca1659cfe5d1
Author: Léo Cavaillé <leo at cavaille.net>
Date:   Mon Aug 26 10:56:19 2013 +0200

    Avoid lazy loading an entity. Fixes method prototype
---
 debile/master/incoming.py |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/debile/master/incoming.py b/debile/master/incoming.py
index a4644dd..acb09ee 100644
--- a/debile/master/incoming.py
+++ b/debile/master/incoming.py
@@ -34,7 +34,7 @@ def process():
             with cd(binary_incoming):
                 pcf = lambda x: parse_changes_file(x, binary_incoming)
                 for changes in fglob("*changes", pcf):
-                    accept_binary(changes, compiler, u)
+                    accept_binary(changes, u)
 
 def accept_source(changes, user):
     session = Session()
@@ -122,7 +122,7 @@ def accept_source(changes, user):
             s.arch)
     add_jobs(s)
 
-def accept_binary(changes):
+def accept_binary(changes, user):
     session = Session()
     try:
         print "Binary acceptance : validating the .changes file"
@@ -201,7 +201,7 @@ def accept_binary(changes):
         session.commit()
 
         # Add the binary to the local user repository
-        ur = UserRepository(s.user)
+        ur = UserRepository(user)
         # If run>1 delete the previous binary before storing the new one
         ur.add_binary(b, (run>1))
 

-- 
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