This is the mail archive of the
cygwin-apps-cvs
mailing list for the cygwin-apps project.
[calm - Cygwin server-side packaging maintenance script] branch master, updated. 20160629-1-g681578b
- From: jturney at sourceware dot org
- To: cygwin-apps-cvs at sourceware dot org
- Date: 5 Jul 2016 12:02:54 -0000
- Subject: [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20160629-1-g681578b
https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=681578b1dbf8bda60a76562da171f65173725908
commit 681578b1dbf8bda60a76562da171f65173725908
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date: Tue Jul 5 12:58:11 2016 +0100
Don't import dirq unless we actually need it
Don't import dirq unless we actually need it, i.e. if the experimental
option --queuedir is used.
Diff:
---
calm/queue.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/calm/queue.py b/calm/queue.py
index d9b1d8f..94ad04c 100644
--- a/calm/queue.py
+++ b/calm/queue.py
@@ -21,7 +21,6 @@
# THE SOFTWARE.
#
-from dirq.QueueSimple import QueueSimple
import logging
import os
import re
@@ -42,6 +41,7 @@ def add(args, movelist, fromdir):
queue_root = os.path.join(args.queuedir, 'dirq')
upload_root = os.path.join(args.queuedir, 'uploads')
+ from dirq.QueueSimple import QueueSimple
dirq = QueueSimple(os.path.join(queue_root, QUEUE))
# clean up empty directories