summaryrefslogtreecommitdiff
path: root/src/trigproc.c
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2011-03-02 09:12:11 +0100
committerGuillem Jover <guillem@debian.org>2012-03-14 07:13:25 +0100
commit1a34570e755a93ecc7b9bf87b9f5e99c187b6dda (patch)
treed24b23bc266a7bb4142b4ba62bf9965bc13a131b /src/trigproc.c
parent43c2ba382cea6d774c91f9a7b8df7a7c550acfb0 (diff)
downloaddpkg-1a34570e755a93ecc7b9bf87b9f5e99c187b6dda.tar.gz
dpkg: Use package specifiers in statusfd and log messages
The colon is often used as a separator but it is always preceded and/or followed by a space so that it's possible to distinguish between the colon used as a separator and the colon embedded in a package name (like in "libc6:amd64"). Based-on-patch-by: Raphaƫl Hertzog <hertzog@debian.org> Patch-sponsored-by: Linaro Limited Signed-off-by: Guillem Jover <guillem@debian.org>
Diffstat (limited to 'src/trigproc.c')
-rw-r--r--src/trigproc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/trigproc.c b/src/trigproc.c
index 5f8fa63e3..073a18c55 100644
--- a/src/trigproc.c
+++ b/src/trigproc.c
@@ -120,7 +120,7 @@ trigproc_run_deferred(void)
continue;
}
push_error_context_jump(&ejbuf, print_error_perpackage,
- pkg->set->name);
+ pkg_name(pkg, pnaw_nonambig));
pkg->clientdata->trigprocdeferred = NULL;
trigproc(pkg);
@@ -292,7 +292,7 @@ check_trigger_cycle(struct pkginfo *processing_now)
pkg_set_status(giveup, stat_halfconfigured);
modstatdb_note(giveup);
print_error_perpackage(_("triggers looping, abandoned"),
- giveup->set->name);
+ pkg_name(giveup, pnaw_nonambig));
return giveup;
}