The following commit has been merged in the master branch:
commit 65b43be3ecfa02ad2c8936f174e4f2e3a5cde180
Author: Guillem Jover <[email protected]>
Date: Tue Nov 1 04:53:30 2011 +0100
libdpkg: Use varbuf_add_archqual() instead of ad-hoc code
diff --git a/lib/dpkg/dump.c b/lib/dpkg/dump.c
index 4f4c733..d452946 100644
--- a/lib/dpkg/dump.c
+++ b/lib/dpkg/dump.c
@@ -283,10 +283,8 @@ void varbufdependency(struct varbuf *vb, struct dependency
*dep) {
varbuf_add_str(vb, possdel);
possdel = " | ";
varbuf_add_str(vb, dop->ed->name);
- if (!dop->arch_is_implicit && dop->arch->type != arch_none) {
- varbuf_add_char(vb, ':');
- varbuf_add_str(vb, dop->arch->name);
- }
+ if (!dop->arch_is_implicit)
+ varbuf_add_archqual(vb, dop->arch);
if (dop->verrel != dvr_none) {
varbuf_add_str(vb, " (");
switch (dop->verrel) {
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]