found 1120066 0.13-5
thanks

Hey Étienne,

> Uuuh, right, the preservation starts fine, but the restoration
> should occur from the .pybuild directory, as that's what gets
> installed afterwards.

Nearly there…! The important bit is that the restoration should also occur
*to* the installation directory, otherwise the mv in PYBUILD_AFTER_INSTALL
is not restoring the directory that will ultimately be used to construct
the .deb file.

Patch attached to make it clearer.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/rules      2026-08-10 07:35:45.875700254 -0700
--- b/debian/rules      2026-08-10 07:51:22.011492216 -0700
@@ -13,7 +13,7 @@
 # Restore original data file, see #1120066.
 export PYBUILD_AFTER_INSTALL = \
        mv -f {build_dir}/gffutils/test/data/FBgn0031208.gtf.db.orig \
-               {build_dir}/gffutils/test/data/FBgn0031208.gtf.db
+               {destdir}/{install_dir}/gffutils/test/data/FBgn0031208.gtf.db
 
 %:
        dh $@ --buildsystem=pybuild

Reply via email to