Просмотр исходного кода

* merge with apt--mvo--0

Patches applied:

 * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-78
   * fix a incorrect example

 * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-79
   * revert patch from patch-59, causes all sorts of trouble

 * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-80
   * fix changelog
Michael Vogt лет назад: 21
Родитель
Сommit
ba13067508
5 измененных файлов с 13 добавлено и 7 удалено
  1. 1 4
      apt-pkg/pkgrecords.cc
  2. 0 1
      apt-pkg/pkgrecords.h
  3. 1 1
      configure.in
  4. 10 0
      debian/changelog
  5. 1 1
      doc/apt_preferences.5.xml

+ 1 - 4
apt-pkg/pkgrecords.cc

@@ -42,9 +42,6 @@ pkgRecords::pkgRecords(pkgCache &Cache) : Cache(Cache), Files(0)
       if (Files[I->ID] == 0)
       if (Files[I->ID] == 0)
 	 return;
 	 return;
    }   
    }   
-   // We store that to make sure that the destructor won't segfault,
-   // even if the Cache object was destructed before this instance.
-   PackageFileCount = Cache.HeaderP->PackageFileCount;
 }
 }
 									/*}}}*/
 									/*}}}*/
 // Records::~pkgRecords - Destructor					/*{{{*/
 // Records::~pkgRecords - Destructor					/*{{{*/
@@ -52,7 +49,7 @@ pkgRecords::pkgRecords(pkgCache &Cache) : Cache(Cache), Files(0)
 /* */
 /* */
 pkgRecords::~pkgRecords()
 pkgRecords::~pkgRecords()
 {
 {
-   for (unsigned I = 0; I != PackageFileCount; I++)
+   for (unsigned I = 0; I != Cache.HeaderP->PackageFileCount; I++)
       delete Files[I];
       delete Files[I];
    delete [] Files;
    delete [] Files;
 }
 }

+ 0 - 1
apt-pkg/pkgrecords.h

@@ -33,7 +33,6 @@ class pkgRecords
    
    
    pkgCache &Cache;
    pkgCache &Cache;
    Parser **Files;
    Parser **Files;
-   int PackageFileCount;
       
       
    public:
    public:
 
 

+ 1 - 1
configure.in

@@ -18,7 +18,7 @@ AC_CONFIG_AUX_DIR(buildlib)
 AC_CONFIG_HEADER(include/config.h:buildlib/config.h.in include/apti18n.h:buildlib/apti18n.h.in)
 AC_CONFIG_HEADER(include/config.h:buildlib/config.h.in include/apti18n.h:buildlib/apti18n.h.in)
 
 
 dnl -- SET THIS TO THE RELEASE VERSION --
 dnl -- SET THIS TO THE RELEASE VERSION --
-AC_DEFINE_UNQUOTED(VERSION,"0.6.42")
+AC_DEFINE_UNQUOTED(VERSION,"0.6.42.1")
 PACKAGE="apt"
 PACKAGE="apt"
 AC_DEFINE_UNQUOTED(PACKAGE,"$PACKAGE")
 AC_DEFINE_UNQUOTED(PACKAGE,"$PACKAGE")
 AC_SUBST(PACKAGE)
 AC_SUBST(PACKAGE)

+ 10 - 0
debian/changelog

@@ -1,3 +1,13 @@
+apt (0.6.42.1) unstable; urgency=low
+
+  * fix a incorrect example in the apt_prefrences man page
+    (thanks to Filipus Klutiero, closes: #282918)
+  * apt-pkg/pkgrecords.cc:
+    - revert patch from last version, it causes trouble on alpha 
+      and ia64 (closes: #335102, #335103)
+
+ -- Michael Vogt <mvo@debian.org>  Sat, 22 Oct 2005 23:44:35 +0200
+
 apt (0.6.42) unstable; urgency=low
 apt (0.6.42) unstable; urgency=low
 
 
   * apt-pkg/cdrom.cc:
   * apt-pkg/cdrom.cc:

+ 1 - 1
doc/apt_preferences.5.xml

@@ -183,7 +183,7 @@ belonging to any distribution whose Archive name is "<literal>unstable</literal>
 <programlisting>
 <programlisting>
 Package: *
 Package: *
 Pin: release a=unstable
 Pin: release a=unstable
-Pin-Priority: 500
+Pin-Priority: 50
 </programlisting>
 </programlisting>
 
 
 <simpara>The following record assigns a high priority to all package versions
 <simpara>The following record assigns a high priority to all package versions