[Pkg-debile-commits] [debile-master] 50/126: updates all around

Sylvestre Ledru sylvestre at alioth.debian.org
Mon Aug 19 14:56:13 UTC 2013


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

sylvestre pushed a commit to branch scan-build-html
in repository debile-master.

commit 623e6562fde0f7c51bdd435ca0f44ddd00ab8026
Author: Paul Tagliamonte <tag at pault.ag>
Date:   Thu May 30 22:19:37 2013 -0400

    updates all around
---
 lucy/server.py        |    9 ++++-----
 scripts/create-chroot |   14 ++++++++++++++
 scripts/lucy-janitor  |    4 ++--
 scripts/lucy-processd |    2 ++
 4 files changed, 22 insertions(+), 7 deletions(-)

diff --git a/lucy/server.py b/lucy/server.py
index ed16619..faec284 100644
--- a/lucy/server.py
+++ b/lucy/server.py
@@ -118,11 +118,10 @@ class LucyInterface(object):
                         job=job['_id'],
                         failed=failed)
 
-        path = os.path.join(
-            config['pool'],
-            uuid_to_path(job['_id'])
-        )
-        os.makedirs(path)
+        path = os.path.join(config['pool'], uuid_to_path(job['_id']))
+        if not os.path.exists(path):
+            os.makedirs(path)
+
         path = os.path.join(path, 'log')
 
         with open(path, 'w') as fd:
diff --git a/scripts/create-chroot b/scripts/create-chroot
new file mode 100755
index 0000000..6050324
--- /dev/null
+++ b/scripts/create-chroot
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+SUITE=$1
+MIRROR=$2
+NAME=$3
+
+if [ "x${NAME}" = "x" ]; then
+    echo "${0} unstable http://debian.lcs.mit.edu/debian/ unstable-amd64"
+    exit 1
+fi
+
+sudo sbuild-createchroot \
+    --make-sbuild-tarball=/var/lib/ethel/chroots/${NAME}.tar.gz \
+    ${SUITE} `mktemp -d` ${MIRROR}
diff --git a/scripts/lucy-janitor b/scripts/lucy-janitor
index 6289bc3..fcf0efc 100755
--- a/scripts/lucy-janitor
+++ b/scripts/lucy-janitor
@@ -1,7 +1,7 @@
 #!/usr/bin/env python
 
 from lucy.models.job import Job
-from lucy.cli.incoming import main as process_incoming
+#from lucy.cli.incoming import main as process_incoming
 
 import datetime as dt
 import schedule
@@ -9,7 +9,7 @@ import time
 
 
 def cron():
-    process_incoming()
+    # process_incoming()
     cleanup_jobs()
 
 
diff --git a/scripts/lucy-processd b/scripts/lucy-processd
index 5aba1f4..c846fc2 100755
--- a/scripts/lucy-processd
+++ b/scripts/lucy-processd
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+lucy-process-incoming
+
 inoticoming \
     --foreground \
     /srv/lucy.pault.ag/incoming/ \

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