* Use debhelper v7; rules file minimisation.
* Add build and install targets to Makefile.
+ * Put in a workaround for bug #479317, an incompatability in perl 5.10
+ that causes nonzero exit if a program exits while chdired into a
+ subdirectory of a File::Temp temp directory.
-- Joey Hess <joeyh@debian.org> Thu, 24 Apr 2008 02:05:47 -0400
TMPDIR => 1, CLEANUP => !$keep);
}
+# Workaround for bug #479317 in perl 5.10.
+sub END {
+ chdir("/");
+}
+
sub recreatetarball {
my $tempdir=shift;
my $source=shift;
doit("cp", "-a", $source, "$tempdir/workdir$subdir");
}
else {
- doit("cp", "-a", $source, "$tempdir/workdir$subdir");
+ doit("mv", $source, "$tempdir/workdir$subdir");
}
# It's important that this create an identical tarball each time
sub checkout {
my $tarball=shift;
- my $tempdir=tempdir();
my ($delta, $id)=checkoutdelta($tarball);
my ($sourcedir, undef)=export($id);
my $pid = open(GENTAR, "|-");