From: Scott James Remnant Date: Mon, 8 Mar 2004 18:37:36 +0000 (+0000) Subject: Apply patch from mrvn to fix #228253; keep architecture in the X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ef42b027e4267432a41343e28f102b1dae668d2;p=dpkg Apply patch from mrvn to fix #228253; keep architecture in the status file. --- diff --git a/ChangeLog b/ChangeLog index 61a3e564..e9ae30f4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Mon Mar 8 18:34:16 GMT 2004 Goswin Brederlow + + * 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 * archtable, configure.in, scripts/dpkg-architecture.pl: Update diff --git a/THANKS b/THANKS index 9c6f9189..3f35978a 100644 --- a/THANKS +++ b/THANKS @@ -17,6 +17,7 @@ Darren Stalder David Huggins-Daines Erick Branderhorst Galen Hazelwood +Goswin Brederlow Guy Maor Hartmut Koptein Heiko Schlittermann diff --git a/debian/changelog b/debian/changelog index cacad212..9cc07f2c 100644 --- a/debian/changelog +++ b/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 UNRELEASED diff --git a/lib/parse.c b/lib/parse.c index 81c14714..a3e13b6a 100644 --- a/lib/parse.c +++ b/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 diff --git a/main/processarc.c b/main/processarc.c index c1d5669b..9de7e9de 100644 --- a/main/processarc.c +++ b/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;