summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2009-06-09 17:33:22 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2009-06-09 17:33:22 +0200
commit81e9789b12374073e848c73c79e235f82c14df44 (patch)
tree419a706fb1a4544cdab44dbd2fd3bf3fcd76ba35 /apt-pkg/contrib
parenteac9121ea9d2b4180399f4b63f88491f8e0f1a8a (diff)
[ABI break] support '#' in apt.conf and /etc/apt/preferences
(closes: #189866)
Diffstat (limited to 'apt-pkg/contrib')
-rw-r--r--apt-pkg/contrib/configuration.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/contrib/configuration.cc b/apt-pkg/contrib/configuration.cc
index a82311a3f..80584d3ea 100644
--- a/apt-pkg/contrib/configuration.cc
+++ b/apt-pkg/contrib/configuration.cc
@@ -582,7 +582,7 @@ bool ReadConfigFile(Configuration &Conf,const string &FName,bool AsSectional,
if (InQuote == true)
continue;
- if (*I == '/' && I + 1 != End && I[1] == '/')
+ if ((*I == '/' && I + 1 != End && I[1] == '/') || *I == '#')
{
End = I;
break;