aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Woodward2010-01-10 18:12:28 -0500
committerJason Woodward2010-01-10 18:12:28 -0500
commiteed58996aaa3da6625e4f2542d66344a31a4ddf4 (patch)
tree20a1b2511ccddad9f9ae9c711e1de31bfbabe75e /src
parentad441f98b7ddc3961219c6ce3f4f640b75eebdd0 (diff)
downloadslapt-get-eed58996aaa3da6625e4f2542d66344a31a4ddf4.tar.gz
ignore the location for installed packages as they do not have any real meaning and end up confusing the user.
Diffstat (limited to 'src')
-rw-r--r--src/package.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/package.c b/src/package.c
index 3e739ee..7279a83 100644
--- a/src/package.c
+++ b/src/package.c
@@ -601,11 +601,7 @@ struct slapt_pkg_list *slapt_get_installed_pkgs(void)
free(size_u);
}
- /* pull out location */
- slapt_execute_regex(location_regex,pkg_data);
- if (location_regex->reg_return == 0) {
- tmp_pkg->location = slapt_regex_extract_match(location_regex, pkg_data, 1);
- }
+ /* Ignore the location for installed packages */
if (strstr(pkg_data,"PACKAGE DESCRIPTION") != NULL) {
char *desc_p = strstr(pkg_data,"PACKAGE DESCRIPTION");