summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2016-03-09 19:44:25 -0500
committerJason Woodward2016-03-09 19:44:51 -0500
commitf8f66104cb4cc4b66eb854297df81d7d4d7c09ea (patch)
tree8f465b4385b66a77ae90f376925d853ed7f98ca9
parent86dc8d892aaf5c01bf90a0edd082f83d4de1c97b (diff)
downloadslapt-get-f8f66104cb4cc4b66eb854297df81d7d4d7c09ea.tar.gz
package show: fall back to provided name if parsing version out fails to find a match
-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 )