From 3e72c8cb7eb2daf7419d00a9ff50eda3cbb40db3 Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 7 Sep 2008 02:27:43 +0000 Subject: Allow comments in sources.list and list files (thanks danieldg) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10428 e03df62e-2008-0410-955e-edbf42e46eb7 --- modulemanager | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modulemanager') diff --git a/modulemanager b/modulemanager index 126c74218..2f3d0a505 100755 --- a/modulemanager +++ b/modulemanager @@ -33,6 +33,7 @@ sub parse_url { my $mod; for (split /\n+/, $doc) { s/^\s+//; # ignore whitespace at start + next if /^#/; if (/^module (\S+) ([0-9.]+) (\S+)/) { my($name, $ver, $url) = ($1,$2,$3); if ($modules{$name}{$ver}) { @@ -60,6 +61,7 @@ sub parse_url { open SRC, 'sources.list' or die "Could not open sources.list: $!"; while () { + next if /^\s*#/; parse_url($_); } close SRC; -- cgit v1.2.3