[Debtags-commits] [svn] r1901 - debtags/1.6.0
Enrico Zini
enrico at costa.debian.org
Wed Sep 13 21:19:42 UTC 2006
Author: enrico
Date: Wed Sep 13 21:19:41 2006
New Revision: 1901
Modified:
debtags/1.6.0/ (props changed)
debtags/1.6.0/debtags-updatecontrol
Log:
r3317 at viaza: enrico | 2006-09-13 23:19:01 +0200
Applied patch from kov to edit control.in if present
Modified: debtags/1.6.0/debtags-updatecontrol
==============================================================================
--- debtags/1.6.0/debtags-updatecontrol (original)
+++ debtags/1.6.0/debtags-updatecontrol Wed Sep 13 21:19:41 2006
@@ -158,7 +158,7 @@
$| = 1;
# Go through all the tag changes and ask for approval
-open IN, "debian/control" or die "Cannot open debian/control: $!";
+open IN, "debian/control.in" or open IN, "debian/control" or die "Cannot open debian/control: $!";
# Write the edited control file into a temprary file
my ($out, $outname) = tempfile( DIR=>'debian/', UNLINK=>1);
@@ -245,7 +245,11 @@
# the edited version
if ($edited)
{
+ if (stat "debian/control.in") {
+ rename $outname, "debian/control.in" or die "Cannot replace the old debian/control.in with the new contents: $!";
+ } else {
rename $outname, "debian/control" or die "Cannot replace the old debian/control with the new contents: $!";
+ }
}
close $out;
More information about the Debtags-commits
mailing list