aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2010-01-10 18:12:28 -0500
committerJason Woodward2010-01-10 18:12:28 -0500
commiteed58996aaa3da6625e4f2542d66344a31a4ddf4 (patch)
tree20a1b2511ccddad9f9ae9c711e1de31bfbabe75e
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.
-rw-r--r--ChangeLog2
-rw-r--r--src/package.c6
2 files changed, 3 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 7969ceb..69413ec 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
0.10.2c Jan 10, 2010
+ * ignore the location for installed packages as they do not have any
+ real meaning and end up confusing the user.
* fixed missing configuration option copying from the initial config
to the final configuration. --remove-obsolete and --retry were not
being honored.
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");