]> git.decadent.org.uk Git - dak.git/blobdiff - dak/process_new.py
show-new: run lintian as unprivileged user
[dak.git] / dak / process_new.py
index 61eb8ec9f67de76335a3dc8dbca63f827e4f01d3..d1e5802161d575c32e00337fa7005cc7d794a2ae 100755 (executable)
@@ -662,6 +662,8 @@ def do_pkg(upload, session):
     dsc = upload.source
 
     cnf = Config()
+    group = cnf.get('Dinstall::UnprivGroup') or None
+
     #bcc = "X-DAK: dak process-new"
     #if cnf.has_key("Dinstall::Bcc"):
     #    u.Subst["__BCC__"] = bcc + "\nBcc: %s" % (cnf["Dinstall::Bcc"])
@@ -670,7 +672,7 @@ def do_pkg(upload, session):
 
     try:
       with lock_package(upload.changes.source):
-       with UploadCopy(upload) as upload_copy:
+       with UploadCopy(upload, group=group) as upload_copy:
         handler = PolicyQueueUploadHandler(upload, session)
         if handler.get_action() is not None:
             print "PENDING %s\n" % handler.get_action()