summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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? */ }