On Sun, 9 Dec 2018 12:48:30 +0100
Lukas Schwaighofer <[email protected]> wrote:
> I've fixed this for my need with the following change:
I messed up the patch formatting, corrected below. Sorry for the noise.
--- /usr/bin/sbuild-createchroot 2018-11-13 16:07:19.000000000 +0100
+++ sbuild-createchroot 2018-12-09 11:41:56.634681576 +0100
@@ -288,7 +288,7 @@
# has more entries than just "." and ".." and must thus not be empty.
readdir $dh;
readdir $dh;
- die "$target is not empty" if (readdir $dh);
+ die "$target is not empty" if (readdir $dh and !$conf->get('SETUP_ONLY'));
} else {
# Create the target directory in advance so abs_path (which is buggy)
# won't fail. Remove if abs_path is replaced by something better.
swluk@tank:~$