[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#132714: dpkg forget Origin: and Bugs: ?

Package: dpkg
Version: 1.9.18


I've noticed dpkg doesn't preserve Origin: and Bugs: information when
a package was installed. These were lost in /var/lib/dpkg/status, so
we can't see these fields by dpkg -s <package>. Is this intended behavior?

I think Origin: and Bugs: should be kept in status file to check package's
origin and/or bugs information by "dpkg -s".  This patch do this.

# I'm not sure these should be strdup(3) or not...

diff -Nru dpkg-1.9.18/main/processarc.c dpkg-1.9.18.n/main/processarc.c
--- dpkg-1.9.18/main/processarc.c	Sat Nov  3 15:22:56 2001
+++ dpkg-1.9.18.n/main/processarc.c	Thu Feb  7 18:06:11 2002
@@ -793,6 +793,8 @@
   pkg->installed.architecture= 0; /* This is irrelevant in the status file. */
   pkg->installed.installedsize= pkg->available.installedsize;
   pkg->installed.version= pkg->available.version;
+  pkg->installed.origin = pkg->available.origin;
+  pkg->installed.bugs = pkg->available.bugs;
   /* We have to generate our own conffiles structure. */
   pkg->installed.conffiles= 0; iconffileslastp= &pkg->installed.conffiles;

Fumitoshi UKAI

Reply to: