Author: jamessan
Date: 2009-08-30 14:07:37 +0000 (Sun, 30 Aug 2009)
New Revision: 1981

Modified:
   trunk/scripts/debchange.pl
Log:
Cleanup indentation in debchange

Modified: trunk/scripts/debchange.pl
===================================================================
--- trunk/scripts/debchange.pl  2009-08-30 07:43:11 UTC (rev 1980)
+++ trunk/scripts/debchange.pl  2009-08-30 14:07:37 UTC (rev 1981)
@@ -61,11 +61,11 @@
     };
 
     if ($@) {
-        if ($@ =~ m%^Can\'t locate Parse/DebControl%) {
-            $lpdc_broken="the libparse-debcontrol-perl package is not 
installed";
-        } else {
-            $lpdc_broken="couldn't load Parse::DebControl: $@";
-        }
+       if ($@ =~ m%^Can\'t locate Parse/DebControl%) {
+           $lpdc_broken="the libparse-debcontrol-perl package is not 
installed";
+       } else {
+           $lpdc_broken="couldn't load Parse::DebControl: $@";
+       }
     }
     else { $lpdc_broken=''; }
     return $lpdc_broken ? 0 : 1;
@@ -239,7 +239,7 @@
                       );
     $config_vars{'DEBCHANGE_TZ'} ||= '';
     my %config_default = %config_vars;
-    
+
     my $shell_cmd;
     # Set defaults
     foreach my $var (keys %config_vars) {
@@ -622,14 +622,14 @@
     if ($opt_D) {
        $DISTRIBUTION=$opt_D;
     }
-}    
+}
 
 if ($opt_package) {
     if ($opt_package =~ m/^[a-z0-9][a-z0-9+\-\.]+$/) {
-        $PACKAGE=$opt_package;
+       $PACKAGE=$opt_package;
     } else {
-        warn "$progname warning: illegal package name used with --package: 
$opt_package\n";
-        $warnings++;
+       warn "$progname warning: illegal package name used with --package: 
$opt_package\n";
+       $warnings++;
     }
 }
 
@@ -1011,17 +1011,17 @@
                    # First NMU of a Debian native package
                    $end .= "+nmu1";
                } else {
-                   $end += 0.1;
+                   $end += 0.1;
                }
-            } elsif ($opt_bn and not $start =~ /\+b/) {
-                $end .= "+b1";
+           } elsif ($opt_bn and not $start =~ /\+b/) {
+               $end .= "+b1";
            } elsif ($opt_qa and $start =~/(.*?)-(\d+)\.$/) {
-                # Drop NMU revision when doing a QA upload
-                my $upstream_version = $1;
-                my $debian_revision = $2;
-                $debian_revision++;
-                $start = "$upstream_version-$debian_revision";
-                $end = "";
+               # Drop NMU revision when doing a QA upload
+               my $upstream_version = $1;
+               my $debian_revision = $2;
+               $debian_revision++;
+               $start = "$upstream_version-$debian_revision";
+               $end = "";
            } elsif ($opt_bpo and not $start =~ /~bpo[0-9]+\+$/) {
                # If it's not already a backport make it so
                # otherwise we can be safe if we behave like dch -i
@@ -1086,7 +1086,7 @@
        $bpo_dist ||= $bpo_dists{$latest_bpo_dist} . '-backports';
     }
     my $distribution = $opt_D || $bpo_dist || (($opt_release_heuristic eq 
'changelog') ? "UNRELEASED" : $DISTRIBUTION);
-    
+
     my $urgency = $opt_u;
     if ($opt_news) {
        $urgency ||= $CL_URGENCY;
@@ -1102,29 +1102,29 @@
     } else {
        print O "$PACKAGE ($NEW_VERSION) $distribution; urgency=$urgency\n\n";
        if ($opt_n && ! $opt_news) {
-            print O "  * Non-maintainer upload.\n";
+           print O "  * Non-maintainer upload.\n";
            $line = 1;
        } elsif ($opt_bn && ! $opt_news) {
-            my $arch = qx/dpkg-architecture -qDEB_BUILD_ARCH/; chomp ($arch);
-            print O "  * Binary-only non-maintainer upload for $arch; no 
source changes.\n";
-            $line = 1;
+           my $arch = qx/dpkg-architecture -qDEB_BUILD_ARCH/; chomp ($arch);
+           print O "  * Binary-only non-maintainer upload for $arch; no source 
changes.\n";
+           $line = 1;
        } elsif ($opt_qa && ! $opt_news) {
-            print O "  * QA upload.\n";
-            $line = 1;
+           print O "  * QA upload.\n";
+           $line = 1;
        } elsif ($opt_s && ! $opt_news) {
-            print O "  * Non-maintainer upload by the Security Team.\n";
-            $line = 1;
+           print O "  * Non-maintainer upload by the Security Team.\n";
+           $line = 1;
        } elsif ($opt_bpo && ! $opt_news) {
-            print O "  * Rebuild for $bpo_dist.\n";
-            $line = 1;
+           print O "  * Rebuild for $bpo_dist.\n";
+           $line = 1;
        }
        if (@closes_text or $TEXT) {
-            foreach (@closes_text) { format_line($_, 1); }
-            if (length $TEXT) { format_line($TEXT, 1); }
+           foreach (@closes_text) { format_line($_, 1); }
+           if (length $TEXT) { format_line($TEXT, 1); }
        } elsif ($opt_news) {
-            print O "  \n";
+           print O "  \n";
        } else {
-            print O "  * \n";
+           print O "  * \n";
        }
        $line += 3;
        print O "\n -- $MAINTAINER <$EMAIL>  $DATE\n\n";
@@ -1137,7 +1137,7 @@
 if (($opt_r || $opt_a || $merge) && ! $opt_create) {
     # This means we just have to generate a new * entry in changelog
     # and if a multi-developer changelog is detected, add developer names.
-    
+
     $NEW_VERSION=$VERSION unless $NEW_VERSION;
     $NEW_SVERSION=$SVERSION unless $NEW_SVERSION;
     $NEW_UVERSION=$UVERSION unless $NEW_UVERSION;
@@ -1171,7 +1171,7 @@
                $line = $savedline;
                last;
            }
-       }       
+       }
        elsif (/  \* Upload to ([^ ]+).*$/) {
            ($dist_indicator = $1) =~ s/[,;]$//;
            chomp $dist_indicator;
@@ -1434,12 +1434,12 @@
        } else {
            warn "$progname warning: Couldn't rename directory: $!";
        }
-       # And check whether a new orig tarball exists
-       my @origs = glob("../$PACKAGE\_$new_uversion.*");
-       my $num_origs = grep { 
/^..\/\Q$PACKAGE\E_\Q$new_uversion\E\.orig\.tar\.(gz|bz2|lzma)$/ } @origs;
-       if ($num_origs == 0) {
-          warn "$progname warning: no orig tarball found for the new 
version.\n";
-       }
+       # And check whether a new orig tarball exists
+       my @origs = glob("../$PACKAGE\_$new_uversion.*");
+       my $num_origs = grep { 
/^..\/\Q$PACKAGE\E_\Q$new_uversion\E\.orig\.tar\.(gz|bz2|lzma)$/ } @origs;
+       if ($num_origs == 0) {
+           warn "$progname warning: no orig tarball found for the new 
version.\n";
+       }
     }
 }
 



-- 
To unsubscribe, send mail to [email protected].

Reply via email to