[Slapt-get-devel] Packages can be found with --search but not with --show

Jason Woodward woodwardj at jaos.org
Thu Mar 10 00:46:17 UTC 2016


Hi George,

> Hi Jason,

Too bad we always chat when there is a bug ;-)

>
I have another issue for you. It seems like packages with 3 dashes (or 
>
more? ) in their package name can be located with --search, but not with 
>
--show.
> 
> $ slapt-get --search xfce4-time-out-plugin
>
xfce4-time-out-plugin-1.0.2-x86_64-1gv [inst=no]: xfce4-time-out-plugin 
>
(time-out plugin for the Xfce panel)
> 
> $ slapt-get --show
xfce4-time-out-plugin
> No such package: xfce4-time-out-plugin
> 
> My
slapt-getrc SOURCEs are again:
> 
>
SOURCE=http://download.salixos.org/x86_64/slackware-14.2/:OFFICIAL
>
SOURCE=http://download.salixos.org/x86_64/slackware-14.2/extra/:OFFICIAL
>
SOURCE=http://download.salixos.org/x86_64/14.2/:PREFERRED

Got it... just
pushed a fix:

commit f8f66104cb4cc4b66eb854297df81d7d4d7c09ea
Author:
Jason Woodward <woodwardj at jaos.org>
Date:	Wed Mar 9 19:44:25 2016 -0500


   package show: fall back to provided name if parsing version out fails to
find a match

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 )



take
care,
jason
--
woodwardj at jaos.org


More information about the Slapt-get-devel mailing list