aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Youri/Package
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Youri/Package')
-rw-r--r--lib/Youri/Package/RPM4.pm10
-rw-r--r--lib/Youri/Package/URPM.pm10
2 files changed, 4 insertions, 16 deletions
diff --git a/lib/Youri/Package/RPM4.pm b/lib/Youri/Package/RPM4.pm
index 306c32f..b1ed5d8 100644
--- a/lib/Youri/Package/RPM4.pm
+++ b/lib/Youri/Package/RPM4.pm
@@ -339,10 +339,7 @@ sub get_changes {
$changes[$i] = [
$names[$i],
$time[$i],
- [
- map { s/^.\s+//; $_ }
- split(/\n/, $text[$i])
- ]
+ $text[$i],
];
}
@@ -355,10 +352,7 @@ sub get_last_change {
return [
($self->{_header}->tag('changelogname'))[0],
($self->{_header}->tag('changelogtime'))[0],
- [
- map { s/^.\s+//; $_ }
- split(/\n/, ($self->{_header}->tag('changelogtext'))[0])
- ]
+ ($self->{_header}->tag('changelogtext'))[0],
];
}
diff --git a/lib/Youri/Package/URPM.pm b/lib/Youri/Package/URPM.pm
index 5e314f9..d2b2360 100644
--- a/lib/Youri/Package/URPM.pm
+++ b/lib/Youri/Package/URPM.pm
@@ -307,10 +307,7 @@ sub get_changes {
$changes[$i] = [
$names[$i],
$time[$i],
- [
- map { s/^.\s+//; $_ }
- split(/\n/, $text[$i])
- ]
+ $text[$i],
];
}
@@ -323,10 +320,7 @@ sub get_last_change {
return [
($self->{_header}->changelog_name())[0],
($self->{_header}->changelog_time())[0],
- [
- map { s/^.\s+//; $_ }
- split(/\n/, ($self->{_header}->changelog_text())[0])
- ]
+ ($self->{_header}->changelog_text())[0],
];
}