From: David Kalnischkies Date: Wed, 29 Jun 2011 21:16:00 +0000 (+0200) Subject: Defaults is a vector of Pin not of PkgPin X-Git-Tag: 0.8.15.3~4^2~11 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/1925ea3d0cd6579a4034acb7308e532d025319c7?ds=sidebyside Defaults is a vector of Pin not of PkgPin --- diff --git a/apt-pkg/policy.cc b/apt-pkg/policy.cc index 291d83c67..827c9145c 100644 --- a/apt-pkg/policy.cc +++ b/apt-pkg/policy.cc @@ -210,7 +210,7 @@ void pkgPolicy::CreatePin(pkgVersionMatch::MatchType Type,string Name, { if (Name.empty() == true) { - Pin *P = &*Defaults.insert(Defaults.end(),PkgPin()); + Pin *P = &*Defaults.insert(Defaults.end(),Pin()); P->Type = Type; P->Priority = Priority; P->Data = Data; diff --git a/debian/changelog b/debian/changelog index e527142c4..c4f7af623 100644 --- a/debian/changelog +++ b/debian/changelog @@ -14,8 +14,9 @@ apt (0.8.15.1) unstable; urgency=low * apt-pkg/policy.cc: - do not segfault in pinning if a package with this name doesn't exist. Thanks to Ferdinand Thommes for the report! + - Defaults is a vector of Pin not of PkgPin - -- David Kalnischkies Wed, 29 Jun 2011 22:05:50 +0200 + -- David Kalnischkies Wed, 29 Jun 2011 23:15:35 +0200 apt (0.8.15) unstable; urgency=low