aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS5
-rw-r--r--URPM.pm2
-rw-r--r--URPM/Resolve.pm3
3 files changed, 9 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index e7a2c37..86624be 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,8 @@
+Version 4.33 - 31 May 2011, by Per Øyvind Karlsen
+
+- add URPM::Resolve::fullname_parts() as a function parsing fullname with a
+ regex assisted by provided disttag & distepoch
+
Version 4.32 - 31 May 2011, by Per Øyvind Karlsen
- *really* fix URPM::Package->sourcerpm
diff --git a/URPM.pm b/URPM.pm
index de4091d..e70066a 100644
--- a/URPM.pm
+++ b/URPM.pm
@@ -11,7 +11,7 @@ use URPM::Resolve;
use URPM::Signature;
our @ISA = qw(DynaLoader);
-our $VERSION = '4.32';
+our $VERSION = '4.33';
URPM->bootstrap($VERSION);
diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm
index 7c6fed8..4df9505 100644
--- a/URPM/Resolve.pm
+++ b/URPM/Resolve.pm
@@ -30,6 +30,9 @@ sub property2name_range {
sub property2name_op_version {
$_[0] =~ /^([^\s\[]*)(?:\[\*\])?\s*\[?([^\s\]]*)\s*([^\s\]]*)/;
}
+sub fullname_parts {
+ $_[1] =~ sprintf(qr/^(.*)-([^\-]*)-([^\-]*)%s\.([^\.\-]*)$/, (exists $_[0]{disttag} ? "-" . $_[0]{disttag} . (exists $_[0]{distepoch} ? $_[0]{distepoch} : "" ) : ""));
+}
#- wrappers around $state (cf "The $state object" in "perldoc URPM")
sub packages_to_remove {