summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2014-01-20 07:59:11 +0100
committerMichael Vogt <mvo@debian.org>2014-01-20 07:59:11 +0100
commit7dd62ea93413a73b4ec394b16ff4e0367d226395 (patch)
treef92d6cdb76eb4db2d0ddbb7c4a18bb516e35edd3 /apt-pkg
parente67b9a23d7646d2f1e21bf4039fa71cc66b628c5 (diff)
add support for Enabled: no in deb822 sources.list
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/sourcelist.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/apt-pkg/sourcelist.cc b/apt-pkg/sourcelist.cc
index 4e580ba04..5d41fb00e 100644
--- a/apt-pkg/sourcelist.cc
+++ b/apt-pkg/sourcelist.cc
@@ -84,6 +84,10 @@ bool pkgSourceList::Type::ParseStanza(vector<metaIndex *> &List,
_error->Error(_("Malformed stanza %u in source list %s (URI parse)"),i,Fd.Name().c_str());
return false;
}
+
+ string Enabled = Tags.FindS("Enabled");
+ if (Enabled.size() > 0 && StringToBool(Enabled) == false)
+ return true;
// Define external/internal options
const char* option_deb822[] = {