summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-10 21:46:58 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-10 21:46:58 +0000
commitdc8ebc43bef9fdae9e0674a767aabc31600285be (patch)
treefed1e7167795c65f07b302e92d2cd37bdaaa17c4
parente19e9113fba7a5ace59694c404b636e211b08977 (diff)
downloadurpmi-dc8ebc43bef9fdae9e0674a767aabc31600285be.tar
urpmi-dc8ebc43bef9fdae9e0674a767aabc31600285be.tar.gz
urpmi-dc8ebc43bef9fdae9e0674a767aabc31600285be.tar.bz2
urpmi-dc8ebc43bef9fdae9e0674a767aabc31600285be.tar.xz
urpmi-dc8ebc43bef9fdae9e0674a767aabc31600285be.zip
(get_updates_description) parse the MDKSA ids and the URL when reading the "descriptions" file
-rw-r--r--urpm.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/urpm.pm b/urpm.pm
index 1f694bd4..00e8ce29 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -248,6 +248,7 @@ sub get_updates_description {
};
/^Updated: (.+)/ && $section eq 'pkg' and $cur->{updated} = $1;
/^Importance: (.+)/ && $section eq 'pkg' and $cur->{importance} = $1;
+ /^(ID|URL): +(.+)/ && $section eq 'pkg' and do { $cur->{$1} = $2; next };
/^%(pre|description)/ and do { $section = $1; next };
$section =~ /^(pre|description)\z/ and $cur->{$1} .= $_;
}