diff options
Diffstat (limited to 'tickets/51f55c244ce14b1f9c043a09aa95e10b/Maildir/new/1455999001.M219448P17339Q112.exolobe1')
-rw-r--r-- | tickets/51f55c244ce14b1f9c043a09aa95e10b/Maildir/new/1455999001.M219448P17339Q112.exolobe1 | 127 |
1 files changed, 127 insertions, 0 deletions
diff --git a/tickets/51f55c244ce14b1f9c043a09aa95e10b/Maildir/new/1455999001.M219448P17339Q112.exolobe1 b/tickets/51f55c244ce14b1f9c043a09aa95e10b/Maildir/new/1455999001.M219448P17339Q112.exolobe1 new file mode 100644 index 0000000..8731f6c --- /dev/null +++ b/tickets/51f55c244ce14b1f9c043a09aa95e10b/Maildir/new/1455999001.M219448P17339Q112.exolobe1 @@ -0,0 +1,127 @@ +Return-Path: <obnam-dev-bounces@obnam.org> +X-Original-To: distix@pieni.net +Delivered-To: distix@pieni.net +Received: from bagpuss.pepperfish.net (bagpuss.pepperfish.net [148.251.8.16]) + (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) + (No client certificate requested) + by pieni.net (Postfix) with ESMTPS id 9BCE32CE92 + for <distix@pieni.net>; Sun, 25 Oct 2015 13:23:21 +0100 (CET) +Received: from platypus.pepperfish.net (unknown [10.112.100.20]) + by bagpuss.pepperfish.net (Postfix) with ESMTP id 31875BAA; + Sun, 25 Oct 2015 12:23:21 +0000 (GMT) +Received: from ip6-localhost ([::1] helo=platypus.pepperfish.net) + by platypus.pepperfish.net with esmtp (Exim 4.80 #2 (Debian)) + id 1ZqKKX-0003Yw-2o; Sun, 25 Oct 2015 12:23:21 +0000 +Received: from inmail0 ([10.112.100.10] helo=mx0.pepperfish.net) + by platypus.pepperfish.net with esmtp (Exim 4.80 #2 (Debian)) + id 1ZqKKV-0003Yk-NQ + for <obnam-dev@obnam.org>; Sun, 25 Oct 2015 12:23:19 +0000 +Received: from emh03.mail.saunalahti.fi ([62.142.5.109]) + by mx0.pepperfish.net with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) + (Exim 4.80) (envelope-from <kvalo@adurom.com>) id 1ZqKKT-0003Z2-Rw + for obnam-dev@obnam.org; Sun, 25 Oct 2015 12:23:19 +0000 +Received: from potku.adurom.net (a88-115-185-251.elisa-laajakaista.fi + [88.115.185.251]) + by emh03.mail.saunalahti.fi (Postfix) with ESMTP id 6FFCA18891A + for <obnam-dev@obnam.org>; Sun, 25 Oct 2015 14:23:09 +0200 (EET) +From: Kalle Valo <kvalo@adurom.com> +Cc: obnam-dev@obnam.org +Date: Sun, 25 Oct 2015 14:23:07 +0200 +Message-ID: <20151025122307.13700.52945.stgit@potku.adurom.net> +User-Agent: StGit/0.15 +MIME-Version: 1.0 +Content-Type: text/plain; charset="utf-8" +Content-Transfer-Encoding: 7bit +X-Spam-Score: -0.6 +X-Spam-Score-int: -5 +X-Spam-Bar: / +X-Scanned-By: pepperfish.net, Sun, 25 Oct 2015 12:23:19 +0000 +X-Spam-Report: Content analysis details: (-0.6 points) + pts rule name description + ---- ---------------------- -------------------------------------------------- + -0.5 PPF_USER_AGENT User-Agent: exists + 1.5 PPF_TO_NO_AT The To header contains no @ symbol + -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low + trust [62.142.5.109 listed in list.dnswl.org] + 1.0 MISSING_HEADERS Missing To: header + -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% + [score: 0.0000] +X-ACL-Warn: message may be spam +X-Scan-Signature: 328469d45a93f2ae0f89eb849cc2b9c2 +Subject: [PATCH] setup.py: fix get_wanted_formats() not to use global + configuration file +X-BeenThere: obnam-dev@obnam.org +X-Mailman-Version: 2.1.5 +Precedence: list +List-Id: Obnam development discussions <obnam-dev-obnam.org> +List-Unsubscribe: <http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org>, + <mailto:obnam-dev-request@obnam.org?subject=unsubscribe> +List-Archive: <http://listmaster.pepperfish.net/pipermail/obnam-dev-obnam.org> +List-Post: <mailto:obnam-dev@obnam.org> +List-Help: <mailto:obnam-dev-request@obnam.org?subject=help> +List-Subscribe: <http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org>, + <mailto:obnam-dev-request@obnam.org?subject=subscribe> +Sender: obnam-dev-bounces@obnam.org +Errors-To: obnam-dev-bounces@obnam.org + +When I tried to run unit tests it failed because of permission access: + +$ ./check +run unit tests +Running test 650/650: test_updates_subdirectory_of_persistent_directory + +OK +436 excluded statements +42 excluded modules +Time: 2.6 s +ERROR:root:Command failed: ./obnam list-formats +CRITICAL:root:Traceback (most recent call last): + File "/usr/lib/python2.7/dist-packages/cliapp/app.py", line 182, in _run + self.setup_logging() + File "/usr/lib/python2.7/dist-packages/cliapp/app.py", line 408, in setup_logging + delay=False) + File "/usr/lib/python2.7/dist-packages/cliapp/app.py", line 58, in __init__ + *args, **kwargs) + File "/usr/lib/python2.7/logging/handlers.py", line 118, in __init__ + BaseRotatingHandler.__init__(self, filename, mode, encoding, delay) + File "/usr/lib/python2.7/logging/handlers.py", line 65, in __init__ + logging.FileHandler.__init__(self, filename, mode, encoding, delay) + File "/usr/lib/python2.7/logging/__init__.py", line 897, in __init__ + StreamHandler.__init__(self, self._open()) + File "/usr/lib/python2.7/dist-packages/cliapp/app.py", line 65, in _open + return logging.handlers.RotatingFileHandler._open(self) + File "/usr/lib/python2.7/logging/__init__.py", line 916, in _open + stream = open(self.baseFilename, self.mode) +IOError: [Errno 13] Permission denied: '/var/tmp/obnam.log' + +This was because my global configuration had a log file configured and it was not accessible to a normal user: + +$ grep '^log:' /etc/obnam.conf +log: /var/tmp/obnam.log +$ ls -l /var/tmp/obnam.log +-rw------- 1 root root 24112886 Oct 25 08:58 /var/tmp/obnam.log +$ +--- + setup.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 7d5768d12f72..b488ecf89ae1 100755 +--- a/setup.py ++++ b/setup.py +@@ -206,7 +206,8 @@ class Check(Command): + if 'REPOSITORY_FORMAT' in os.environ: + return [os.environ['REPOSITORY_FORMAT']] + else: +- return cliapp.runcmd(['./obnam', 'list-formats']).splitlines() ++ return cliapp.runcmd(['./obnam', '--no-default-configs', ++ 'list-formats']).splitlines() + + def run_yarn_for_repo_format(self, repo_format): + print 'run yarn for repository format %s' % repo_format + + +_______________________________________________ +obnam-dev mailing list +obnam-dev@obnam.org +http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org |