summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-01-15 19:43:43 +0000
committerOlivier Blin <oblin@mandriva.org>2004-01-15 19:43:43 +0000
commit35045736d71ac2ccf0108c0293fd5854075e4c99 (patch)
treeeef97914fe8b75409ddc5c57467c127c9e418b5a /urpm.pm
parentf407ed64ddf4070d54f0e631b0eee6ce070933a9 (diff)
downloadurpmi-35045736d71ac2ccf0108c0293fd5854075e4c99.tar
urpmi-35045736d71ac2ccf0108c0293fd5854075e4c99.tar.gz
urpmi-35045736d71ac2ccf0108c0293fd5854075e4c99.tar.bz2
urpmi-35045736d71ac2ccf0108c0293fd5854075e4c99.tar.xz
urpmi-35045736d71ac2ccf0108c0293fd5854075e4c99.zip
urpmq -l (list files), urpmq --changelog, lock rpm db even in chroot in urpmq
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/urpm.pm b/urpm.pm
index 490dff02..bf38cb4f 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -25,6 +25,7 @@ sub N {
#- tool functions.
sub basename { local $_ = shift; s|/*\s*$||; s|.*/||; $_ }
+sub localtime2changelog { scalar(localtime($_[0])) =~ /(.*) \S+ (\d{4})$/ && "$1 $2" };
#- create a new urpm object.
sub new {