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

Apply patch from mrvn to fix #228253; keep architecture in the
status file.

Scott James Remnant лет назад: 22
Родитель
Сommit
2ef42b027e
5 измененных файлов с 9 добавлено и 3 удалено
  1. 6 0
      ChangeLog
  2. 1 0
      THANKS
  3. 1 0
      debian/changelog
  4. 0 2
      lib/parse.c
  5. 1 1
      main/processarc.c

+ 6 - 0
ChangeLog

@@ -1,3 +1,9 @@
+Mon Mar  8 18:34:16 GMT 2004 Goswin Brederlow <brederlo@informatik.uni-tuebingen.de>
+
+  * lib/parse.c, main/processarc.c: Store Architecture in the status file
+  and don't remove it when processing.  This is a first step towards
+  multi-arch support in a future release of Debian.
+
 Mon Mar  8 18:28:07 GMT 2004 Robert Millan <rmh@debian.org>
 
   * archtable, configure.in, scripts/dpkg-architecture.pl: Update

+ 1 - 0
THANKS

@@ -17,6 +17,7 @@ Darren Stalder <torin@daft.com>
 David Huggins-Daines <dhd@debian.org>
 Erick Branderhorst <branderhorst@heel.fgg.eur.nl>
 Galen Hazelwood <galenh@debian.org>
+Goswin Brederlow <brederlo@informatik.uni-tuebingen.de>
 Guy Maor <maor@debian.org>
 Hartmut Koptein <koptein@naffel.de>
 Heiko Schlittermann <heiko@lotte.sax.de>

+ 1 - 0
debian/changelog

@@ -9,6 +9,7 @@ dpkg (1.10.19) unstable; urgency=low
   * Remove duplicated entries from ChangeLog.  Closes: #157437.
   * Fix dpkg-buildpackage when used with PGP.  Closes: #232916.
   * Update support for Debian FreeBSD.  Closes: #211566.
+  * Store Architecture in the status file.  Closes: #228253.
 
  -- Scott James Remnant <scott@netsplit.com>  UNRELEASED
 

+ 0 - 2
lib/parse.c

@@ -241,8 +241,6 @@ int parsedb(const char *filename, enum parsedbflags flags,
     if (flags & pdb_recordavailable)
       parsemustfield(NULL,filename,lno, warnto,warncount,&newpig,1,
                      (const char **)&newpifp->architecture, "architecture");
-    else if (newpifp->architecture && *newpifp->architecture)
-      newpifp->architecture= NULL;
 
     /* Check the Config-Version information:
      * If there is a Config-Version it is definitely to be used, but

+ 1 - 1
main/processarc.c

@@ -804,7 +804,7 @@ void process_archive(const char *filename) {
   pkg->installed.description= pkg->available.description;
   pkg->installed.maintainer= pkg->available.maintainer;
   pkg->installed.source= pkg->available.source;
-  pkg->installed.architecture= 0; /* This is irrelevant in the status file. */
+  pkg->installed.architecture= pkg->available.architecture;
   pkg->installed.installedsize= pkg->available.installedsize;
   pkg->installed.version= pkg->available.version;
   pkg->installed.origin = pkg->available.origin;