[SCM] Debian package checker branch, master, updated. 2.3.4-33-g4d7501e
The following commit has been merged in the master branch:
commit 049a305795045c0e03ec2ae6a5631db8b3a884c2
Author: Adam D. Barratt <adam@adam-barratt.org.uk>
Date: Tue Mar 23 15:50:56 2010 +0000
Opportunisticly create the changes directory in the lab
To allow older laboratories to continue to be used, is_lab()
no longer verifies the existence of the directory. setup() will
create the directory if a static lab is being used and it does not
already exist.
diff --git a/lib/Lab.pm b/lib/Lab.pm
index 565d38d..9227f50 100644
--- a/lib/Lab.pm
+++ b/lib/Lab.pm
@@ -50,7 +50,6 @@ sub is_lab {
return -d "$self->{dir}/binary"
&& -d "$self->{dir}/udeb"
&& -d "$self->{dir}/source"
- && -d "$self->{dir}/changes"
&& -d "$self->{dir}/info";
}
@@ -61,6 +60,11 @@ sub setup {
$self->{mode} = 'static';
$self->{dir} = $dir;
$self->{dist} = $dist;
+
+ if (-d "$dir" && ! -d "$dir/changes") {
+ mkdir("$dir/changes", 0777)
+ or fail("cannot create lab directory $dir/changes");
+ }
} else {
$self->{mode} = 'temporary';
--
Debian package checker
Reply to: