From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C89B3138D0D for ; Tue, 7 Jul 2015 11:26:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C8319E0B2F; Tue, 7 Jul 2015 11:26:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 75B08E0B2F for ; Tue, 7 Jul 2015 11:26:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6C5AE340DCC for ; Tue, 7 Jul 2015 11:26:46 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 23FFC738 for ; Tue, 7 Jul 2015 11:26:44 +0000 (UTC) From: "Anthony G. Basile" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" Message-ID: <1436268554.026001adf952f29a1546da7ed9947224ae2d0940.blueness@gentoo> Subject: [gentoo-commits] proj/grss:master commit in: grs/ X-VCS-Repository: proj/grss X-VCS-Files: grs/Interpret.py X-VCS-Directories: grs/ X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: 026001adf952f29a1546da7ed9947224ae2d0940 X-VCS-Branch: master Date: Tue, 7 Jul 2015 11:26:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: f6a72f73-e923-4ca7-8d93-5078b609a3f1 X-Archives-Hash: f75e45491e35883ce9172ec03095bf4f commit: 026001adf952f29a1546da7ed9947224ae2d0940 Author: Anthony G. Basile gentoo org> AuthorDate: Tue Jul 7 11:29:14 2015 +0000 Commit: Anthony G. Basile gentoo org> CommitDate: Tue Jul 7 11:29:14 2015 +0000 URL: https://gitweb.gentoo.org/proj/grss.git/commit/?id=026001ad grs/Interpret.py: build lines with initial # are comments. grs/Interpret.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/grs/Interpret.py b/grs/Interpret.py index 8b1166b..1f3ca03 100644 --- a/grs/Interpret.py +++ b/grs/Interpret.py @@ -115,6 +115,11 @@ class Interpret(Daemon): for l in s.readlines(): line_number += 1 + # Skip lines with initial # as comments + m = re.search('^(#).*$', l) + if m: + continue + # For a release run, execute every line of the build script. # For an update run, exexute only lines with a leading +. ignore_stamp = False