aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--src/action.c4
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0245f09..d483fff 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
0.10.2t Mar 09, 2016
+ * fall back to provided name if parsing version out fails to find a match with show package
* fix typo s/SLAPT_NO_SSL_VERIFYPERR/SLAPT_NO_SSL_VERIFYPEER/
0.10.2s Dec 20, 2015
diff --git a/src/action.c b/src/action.c
index 22934ca..24f2a1c 100644
--- a/src/action.c
+++ b/src/action.c
@@ -449,7 +449,9 @@ void slapt_pkg_action_show(const char *pkg_name)
free(p_name);
free(p_version);
- } else {
+ }
+
+ if ( pkg == NULL ) {
slapt_pkg_info_t *installed_pkg = slapt_get_newest_pkg(installed_pkgs,pkg_name);
pkg = slapt_get_newest_pkg(avail_pkgs,pkg_name);
if ( pkg == NULL )