aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2004-11-28 03:58:21 +0000
committerJason Woodward2004-11-28 03:58:21 +0000
commit744c01c1ebed06e0db5974db548736d87170bff0 (patch)
treec56d41ff0c223e91e1f4ca216df58d44500d220c
parentf41b060d8484f487948b15a735433a676455ecc8 (diff)
downloadslapt-get-744c01c1ebed06e0db5974db548736d87170bff0.tar.gz
--show now shows installed pkgs, and their file list
-rw-r--r--ChangeLog1
-rw-r--r--src/action.c7
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index bff3329..cdf1d8f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
0.9.9e Nov 27, 2004
+ * --show now shows installed pkgs, and their file list
* get_installed_pkgs() now parses out the packages description as well
* make --search show installed packages that aren't present in available
package list from current sources
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 ){