Ver código fonte

Defaults is a vector of Pin not of PkgPin

David Kalnischkies 15 anos atrás
pai
commit
1925ea3d0c
2 arquivos alterados com 3 adições e 2 exclusões
  1. 1 1
      apt-pkg/policy.cc
  2. 2 1
      debian/changelog

+ 1 - 1
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;

+ 2 - 1
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 <kalnischkies@gmail.com>  Wed, 29 Jun 2011 22:05:50 +0200
+ -- David Kalnischkies <kalnischkies@gmail.com>  Wed, 29 Jun 2011 23:15:35 +0200
 
 apt (0.8.15) unstable; urgency=low