summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@gentoo.org>2010-04-06 08:52:15 +0530
committerNirbheek Chauhan <nirbheek@gentoo.org>2010-04-06 08:53:36 +0530
commit36f157d79a934b42dc8ebb1fcd7c8c51929dc828 (patch)
treea632a9acdb157c62e080b56bb6501a73111a6c8e /scripts
parentscripts/gen_archlist: Fix output ordering issues (diff)
downloadgnome-36f157d79a934b42dc8ebb1fcd7c8c51929dc828.tar.gz
gnome-36f157d79a934b42dc8ebb1fcd7c8c51929dc828.tar.bz2
gnome-36f157d79a934b42dc8ebb1fcd7c8c51929dc828.zip
scripts/gen_archlist: Add a check for inline comments
* Inline comments lead to weird behaviour; explicitily error out if they exist
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gen_archlist.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/gen_archlist.py b/scripts/gen_archlist.py
index 6be47545..e216e0ba 100755
--- a/scripts/gen_archlist.py
+++ b/scripts/gen_archlist.py
@@ -382,6 +382,8 @@ if __name__ == "__main__":
if cpv.startswith('#') or cpv.isspace() or not cpv:
ord_kws.append(cpv)
continue
+ if cpv.find('#') is not -1:
+ raise Exception('Inline comments are not supported')
if not portage.catpkgsplit(cpv):
# It's actually a cp
cpv = match_wanted_atoms(cpv, release=NEW_REL)[0]