summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hartwig <mandyke@gmail.com>2012-07-10 17:03:36 +0800
committerDaniel Hartwig <mandyke@gmail.com>2012-07-10 17:03:36 +0800
commitb40e0bb56871b290fd98223cdd2b17e8b8a7257f (patch)
treec3f9931baf211d15062040ecc7245e66354cd068
parent4412e28ca51a23d559631108119a51ba129ddbf2 (diff)
downloadaptitude-b40e0bb56871b290fd98223cdd2b17e8b8a7257f.tar.gz
Use dpkg package names when calling dpkg
Closes: #680333
-rw-r--r--NEWS3
-rw-r--r--src/pkg_item.cc5
2 files changed, 6 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index ed277823..1472b249 100644
--- a/NEWS
+++ b/NEWS
@@ -155,6 +155,9 @@ ii. to make the program more atomic and reliable when used
* [all]: Really silence errors when debtags is not installed
(Closes: #681021)
+ * [curses]: Use dpkg package names when calling dpkg
+ (Closes: #680333)
+
- Internal changes:
* Unified the way packages are selected from command line
diff --git a/src/pkg_item.cc b/src/pkg_item.cc
index e9d70dfc..c861c21c 100644
--- a/src/pkg_item.cc
+++ b/src/pkg_item.cc
@@ -38,6 +38,7 @@
#include <generic/apt/apt.h>
#include <generic/apt/apt_undo_group.h>
#include <generic/apt/config_signal.h>
+#include <generic/apt/dpkg.h>
#include <generic/apt/matching/match.h>
#include <generic/apt/matching/parse.h>
#include <generic/apt/matching/pattern.h>
@@ -402,8 +403,8 @@ bool pkg_item::dispatch_key(const cw::config::key &k, cw::tree *owner)
char buf[512];
if(sucmd)
{
- snprintf(buf, 512, sucmd,
- package.FullName().c_str());
+ const string name(aptitude::apt::dpkg_package_name(package));
+ snprintf(buf, 512, sucmd, name.c_str());
if(system(buf) != 0) { /* FIXME: ignore? */ }