1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
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 B79DA2E0EF
for <distix@pieni.net>; Fri, 11 Sep 2015 07:22:52 +0200 (CEST)
Received: from platypus.pepperfish.net (unknown [10.112.100.20])
by bagpuss.pepperfish.net (Postfix) with ESMTP id 6B551CBA;
Fri, 11 Sep 2015 06:22:52 +0100 (BST)
Received: from ip6-localhost ([::1] helo=platypus.pepperfish.net)
by platypus.pepperfish.net with esmtp (Exim 4.80 #2 (Debian))
id 1ZaGnU-0007WD-9N; Fri, 11 Sep 2015 06:22:52 +0100
Received: from inmail0 ([10.112.100.10] helo=mx0.pepperfish.net)
by platypus.pepperfish.net with esmtp (Exim 4.80 #2 (Debian))
id 1ZaGnS-0007W7-QH
for <obnam-dev@obnam.org>; Fri, 11 Sep 2015 06:22:50 +0100
Received: from mail-io0-f171.google.com ([209.85.223.171])
by mx0.pepperfish.net with esmtps (TLS1.2:RSA_ARCFOUR_SHA1:128)
(Exim 4.80) (envelope-from <mathstuf@gmail.com>) id 1ZaGnR-0004Io-3E
for obnam-dev@obnam.org; Fri, 11 Sep 2015 06:22:50 +0100
Received: by iofh134 with SMTP id h134so86475068iof.0
for <obnam-dev@obnam.org>; Thu, 10 Sep 2015 22:22:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
h=from:to:cc:subject:date:message-id:in-reply-to:references;
bh=8fQFQOlsQyGHqf2Nd6HTPZkNqMA4ZvwcQJ/jE2N2Ix8=;
b=v/BitBPnjBSCXTQ687DLa7IrtwED2VOMov5n1bn2H1Y0cZe8B6z1lU0xRQxxHaAcRj
S+/RGA5HaGIQn6AnAZxRjl2J31sa8YnW+WXVhmAtF/b8UJONGWVteeMAHP6rwqrvhyes
zGA5h8xnv7KYd5nKrNBxwcxtSiiE7W+e7UF1ktV3F471121eK+/nW1EGUGsLcVQNfc+6
aODhLw3jv+hTiVfaf4dZA4KaSyxbCr4g1lTqmDrUKNVzlDp+WX5OAb8qdPjLpqNaBHJI
OLjjcYGRPcoT1mmwU74Q+R36MaZA8Pq2bTmzw7cXuNhHmxNRP6MuJNklj4aCMTeR+4Qp
QuNw==
X-Received: by 10.107.15.27 with SMTP id x27mr502192ioi.51.1441948957473;
Thu, 10 Sep 2015 22:22:37 -0700 (PDT)
Received: from localhost (45.sub-70-209-135.myvzw.com. [70.209.135.45])
by smtp.gmail.com with ESMTPSA id 10sm153400ios.28.2015.09.10.22.22.35
(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Thu, 10 Sep 2015 22:22:36 -0700 (PDT)
From: Ben Boeckel <mathstuf@gmail.com>
To: obnam-dev@obnam.org
Date: Fri, 11 Sep 2015 01:22:16 -0400
Message-Id: <1441948936-12526-4-git-send-email-mathstuf@gmail.com>
X-Mailer: git-send-email 2.5.1
In-Reply-To: <1441948936-12526-1-git-send-email-mathstuf@gmail.com>
References: <1441948936-12526-1-git-send-email-mathstuf@gmail.com>
X-Spam-Score: -0.5
X-Spam-Score-int: -4
X-Spam-Bar: /
X-Scanned-By: pepperfish.net, Fri, 11 Sep 2015 06:22:50 +0100
X-Spam-Report: Content analysis details: (-0.5 points)
pts rule name description
---- ---------------------- --------------------------------------------------
1.0 PPF_FROM_CONTAINS_MAIL The From header contains 'mail'
1.2 FREEMAIL_FROM Sender email is commonly abused enduser mail provider
(mathstuf[at]gmail.com)
-0.0 SPF_PASS SPF: sender matches SPF record
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's
domain
0.1 DKIM_SIGNED Message has a DKIM or DK signature,
not necessarily valid
-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
-0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low
trust [209.85.223.171 listed in list.dnswl.org]
X-ACL-Warn: message may be spam
X-Scan-Signature: 625f24d4d5a9233cab8b0380f6b09df7
Cc: Ben Boeckel <mathstuf@gmail.com>
Subject: [PATCH 3/3] build: support build/ being a symlink
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
I use a symlink to keep build artifacts off of my main drive, so
preserve the link if it exists.
Signed-off-by: Ben Boeckel <mathstuf@gmail.com>
---
check | 2 +-
setup.py | 6 +++++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/check b/check
index 708ac0f..965d507 100755
--- a/check
+++ b/check
@@ -20,5 +20,5 @@ set -e
python setup.py --quiet clean
python setup.py --quiet build_ext -i
-rm -rf build
+rm -rf build/*/
python setup.py --quiet check "$@"
diff --git a/setup.py b/setup.py
index 3832c61..0859db1 100755
--- a/setup.py
+++ b/setup.py
@@ -115,7 +115,11 @@ class CleanMore(clean):
self.remove_pyc('obnamlib')
self.remove_pyc('test-plugins')
if os.path.isdir('build'):
- shutil.rmtree('build')
+ if os.path.islink('build'):
+ for path in os.listdir('build'):
+ shutil.rmtree('build/' + path)
+ else:
+ shutil.rmtree('build')
def remove_pyc(self, rootdir):
for dirname, subdirs, basenames in os.walk(rootdir):
--
2.5.1
_______________________________________________
obnam-dev mailing list
obnam-dev@obnam.org
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org
|