aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Woodward2004-11-28 03:58:21 +0000
committerJason Woodward2004-11-28 03:58:21 +0000
commit744c01c1ebed06e0db5974db548736d87170bff0 (patch)
treec56d41ff0c223e91e1f4ca216df58d44500d220c /src
parentf41b060d8484f487948b15a735433a676455ecc8 (diff)
downloadslapt-get-744c01c1ebed06e0db5974db548736d87170bff0.tar.gz
--show now shows installed pkgs, and their file list
Diffstat (limited to 'src')
-rw-r--r--src/action.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/action.c b/src/action.c
index 53c5950..d1c5464 100644
--- a/src/action.c
+++ b/src/action.c
@@ -345,14 +345,17 @@ void pkg_action_show(const char *pkg_name){
);
pkg = get_exact_pkg(avail_pkgs, p_name, p_version);
+
+ if( pkg == NULL )
+ pkg = get_exact_pkg(installed_pkgs,p_name,p_version);
+
free(p_name);
free(p_version);
}
- if( pkg_regex.reg_return != 0 || pkg == NULL ){
+ if( pkg_regex.reg_return != 0 || pkg == NULL )
pkg = get_newest_pkg(avail_pkgs,pkg_name);
- }
if( pkg != NULL ){