[Mud-builder-commits] r223 - trunk/lib/MUD
gcobb at garage.maemo.org
gcobb at garage.maemo.org
Sun Mar 9 14:42:29 EET 2008
Author: gcobb
Date: 2008-03-09 14:42:28 +0200 (Sun, 09 Mar 2008)
New Revision: 223
Modified:
trunk/lib/MUD/Build.pm
Log:
Correct userSection calculation
Modified: trunk/lib/MUD/Build.pm
===================================================================
--- trunk/lib/MUD/Build.pm 2008-03-08 18:07:55 UTC (rev 222)
+++ trunk/lib/MUD/Build.pm 2008-03-09 12:42:28 UTC (rev 223)
@@ -313,9 +313,8 @@
# -- Fix section...
#
- my $userSection = $self->{data}->{data}->{deb}->{'prefix-section'} ||
- ($self->{package} =~ /^lib/);
- $userSection = 1 unless defined($userSection);
+ my $userSection = defined ($self->{data}->{data}->{deb}->{'prefix-section'})
+ ? $self->{data}->{data}->{deb}->{'prefix-section'} : $self->{package} !~ /^lib/;
if ($userSection) {
$control =~ s/^(Section:)\s*(user\/)*(.*)$/$1 user\/$3/mig;
}
More information about the Mud-builder-commits
mailing list