diff --git a/docs/repro.8.txt b/docs/repro.8.txt index 98c30c5..5f81bf0 100644 --- a/docs/repro.8.txt +++ b/docs/repro.8.txt @@ -32,6 +32,11 @@ Options `DIFFOSCOPE` can be set in linkman:repro.conf[5] to change the diffoscope command. +*-f*:: + When enabled, `repro` check for a PKGBUILD file in the current working + directory. This one is used to build the package instead of checking out + a PKGBUILD from asp. + See Also -------- linkman:makepkg[8] diff --git a/repro.in b/repro.in index f300622..6f225b7 100755 --- a/repro.in +++ b/repro.in @@ -208,7 +208,7 @@ install -d -o builduser -g builduser /pkgdest install -d -o builduser -g builduser /srcpkgdest install -d -o builduser -g builduser /build __END__ - exec_nspawn "$build" $args sudo -iu builduser bash -c ". /etc/profile; cd /startdir; SOURCE_DATE_EPOCH=$SOURCE_DATE_EPOCH makepkg -sc --noconfirm --skippgpcheck $cmds" + exec_nspawn "$build" $args setsid -f -c -w sudo -iu builduser bash -c ". /etc/profile; cd /startdir; SOURCE_DATE_EPOCH=$SOURCE_DATE_EPOCH makepkg -sc --noconfirm --skippgpcheck $cmds" mkdir -p "./build" for pkgfile in "$BUILDDIRECTORY/$build"/pkgdest/*; do mv "$pkgfile" "./build/"