aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Woodward2004-11-28 04:26:06 +0000
committerJason Woodward2004-11-28 04:26:06 +0000
commit6a6ef19342e128e685f04778049ab96e25ca209f (patch)
treefe72f342221d407bdd19b508b96141c6b91852f8 /src
parent5af743c66a127a5bf4a32fa7d4e2bf4c208bd070 (diff)
downloadslapt-get-6a6ef19342e128e685f04778049ab96e25ca209f.tar.gz
moved some code around in pkg_action_show()
Diffstat (limited to 'src')
-rw-r--r--src/action.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/action.c b/src/action.c
index aff0d73..0cdc567 100644
--- a/src/action.c
+++ b/src/action.c
@@ -349,10 +349,10 @@ void pkg_action_show(const char *pkg_name){
free(p_name);
free(p_version);
- }
-
- if( pkg_regex.reg_return != 0 || pkg == NULL )
+ }else{
pkg = get_newest_pkg(avail_pkgs,pkg_name);
+ if( pkg == NULL ) pkg = get_newest_pkg(installed_pkgs,pkg_name);
+ }
if( pkg != NULL ){