[SCM] Debian package checker branch, master, updated. 2.5.1-75-g9abaeb6
The following commit has been merged in the master branch:
commit 9abaeb6b9e7028a454c0be1b1ace77317d3c9bc9
Author: Niels Thykier <niels@thykier.net>
Date: Mon Jul 11 22:48:52 2011 +0200
Revert "Removed redundant code from Lab.pm"
This reverts commit e684edc8a4780ab287f8d66456a96774b54ab58d.
Also included a comment about why the code is still useful.
diff --git a/lib/Lab.pm b/lib/Lab.pm
index 55d81da..6532e0a 100644
--- a/lib/Lab.pm
+++ b/lib/Lab.pm
@@ -87,6 +87,13 @@ sub _init {
$self->{mode} = 'static';
$self->{dir} = $absdir;
+ # This code is here fore BACKWARDS COMPATABILITY!
+ # - we can kill it when LAB_FORMAT goes from 10 to 11.
+ # Basically this auto-upgrades existing static labs to support changes files
+ if (-d "$absdir" && ! -d "$absdir/changes") {
+ mkdir("$absdir/changes", 0777)
+ or fail("cannot create lab directory $absdir/changes");
+ }
} else {
$self->{mode} = 'temporary';
--
Debian package checker
Reply to: