1 Return-Path: <jani@nikula.org>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 789DC429E51
\r
6 for <notmuch@notmuchmail.org>; Mon, 1 Apr 2013 02:44:17 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
8 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"
\r
12 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
13 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id BSz56q8DBGvL for <notmuch@notmuchmail.org>;
\r
17 Mon, 1 Apr 2013 02:44:16 -0700 (PDT)
\r
18 Received: from mail-la0-f41.google.com (mail-la0-f41.google.com
\r
19 [209.85.215.41]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id D101E429E55
\r
22 for <notmuch@notmuchmail.org>; Mon, 1 Apr 2013 02:44:12 -0700 (PDT)
\r
23 Received: by mail-la0-f41.google.com with SMTP id fo12so1989160lab.0
\r
24 for <notmuch@notmuchmail.org>; Mon, 01 Apr 2013 02:44:09 -0700 (PDT)
\r
25 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
26 d=google.com; s=20120113;
\r
27 h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to
\r
28 :references:in-reply-to:references:x-gm-message-state;
\r
29 bh=MzdJyvHgpK95WMmwkD5Kr8CXmCCl/zx0jM1n9yaxVao=;
\r
30 b=All8NXZaEx+DZNuCFBEKHElKIL5t6iYMm+dDYJMFYrAICLJuwvAd2TsfBqV35C/c3X
\r
31 OwwCwUOzilQinQ2hiXWPDK/qxeY8TB9cBya5neeCKjyu9YhwBeyonIMBMGV9cJaXzHG3
\r
32 fngY9i/dmeHXe0ZW+btn+AbKg3iZNjomksACtVQb2/ti7hPYdo/Ck3lwfPGbPZbFSvoy
\r
33 qaqyBGiVRP4CGK2TfKaoEZNY1EebrJTEKH/IW91Eu5RfPshZDjJEcB2CJkRCbEnABzn1
\r
34 eN6+HyQN7NjF3GPPsGLlpBQqjMN36yC9h47oL/9FOEC55aatoXe1RSAi4V/M2nBgD7oj
\r
36 X-Received: by 10.152.132.138 with SMTP id ou10mr5412514lab.56.1364809448575;
\r
37 Mon, 01 Apr 2013 02:44:08 -0700 (PDT)
\r
38 Received: from localhost (dsl-hkibrasgw4-50df51-27.dhcp.inet.fi.
\r
40 by mx.google.com with ESMTPS id pk1sm5312387lab.0.2013.04.01.02.44.06
\r
41 (version=TLSv1.2 cipher=RC4-SHA bits=128/128);
\r
42 Mon, 01 Apr 2013 02:44:07 -0700 (PDT)
\r
43 From: Jani Nikula <jani@nikula.org>
\r
44 To: notmuch@notmuchmail.org
\r
45 Subject: [PATCH 1/3] nmbug-status: simplify config file read from nmbug git
\r
46 Date: Mon, 1 Apr 2013 12:44:00 +0300
\r
48 <41d8f64a00a516faaa51871e2cb060bb1d0c8a8a.1364809172.git.jani@nikula.org>
\r
49 X-Mailer: git-send-email 1.7.10.4
\r
50 In-Reply-To: <cover.1364809172.git.jani@nikula.org>
\r
51 References: <cover.1364809172.git.jani@nikula.org>
\r
52 In-Reply-To: <cover.1364809172.git.jani@nikula.org>
\r
53 References: <cover.1364809172.git.jani@nikula.org>
\r
55 ALoCoQnfDtMdEt8zCEeWpbm95kFB2C4UcUOEqfmCUhyB7Iz/TFJ2e9ZlVAOQBjKlvy/vbjA9twtn
\r
56 Cc: Tomi Ollila <tomi.ollila@iki.fi>
\r
57 X-BeenThere: notmuch@notmuchmail.org
\r
58 X-Mailman-Version: 2.1.13
\r
60 List-Id: "Use and development of the notmuch mail system."
\r
61 <notmuch.notmuchmail.org>
\r
62 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
63 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
64 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
65 List-Post: <mailto:notmuch@notmuchmail.org>
\r
66 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
67 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
68 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
69 X-List-Received-Date: Mon, 01 Apr 2013 09:44:18 -0000
\r
71 This should be functionally the same as before.
\r
73 devel/nmbug/nmbug-status | 10 +---------
\r
74 1 file changed, 1 insertion(+), 9 deletions(-)
\r
76 diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status
\r
77 index d08ca08..0283013 100755
\r
78 --- a/devel/nmbug/nmbug-status
\r
79 +++ b/devel/nmbug/nmbug-status
\r
80 @@ -32,16 +32,8 @@ if args.config != None:
\r
81 fp = open(args.config)
\r
83 nmbhome = os.getenv('NMBGIT', os.path.expanduser('~/.nmbug'))
\r
85 - # read only the first line from the pipe
\r
86 - sha1 = subprocess.Popen(['git', '--git-dir', nmbhome,
\r
87 - 'show-ref', '-s', 'config'],
\r
88 - stdout=subprocess.PIPE).stdout.readline()
\r
90 - sha1 = sha1.rstrip()
\r
92 fp = subprocess.Popen(['git', '--git-dir', nmbhome,
\r
93 - 'cat-file', 'blob', sha1+':status-config.json'],
\r
94 + 'show', 'config:status-config.json'],
\r
95 stdout=subprocess.PIPE).stdout
\r
97 config = json.load(fp)
\r