#557606 git-buildpackage: Imply --pristine-tar by default it there is already a pristine-tar branch. #557606
- Package:
- git-buildpackage
- Source:
- git-buildpackage
- Submitter:
- Charles Plessy
- Date:
- 2024-07-21 07:03:06 UTC
- Severity:
- wishlist
Dear Guido, It is quite easy to forget to use --pristine-tar when git-importing a new original tarball. How about having this option set by default if the pristine-tar branch already exists? Have a nice day,
That makes sense. You can simply add pristine-tar = True to your ~/.gbp.conf to not forget it until this is implemented. Cheers, -- Guido
Hi, in addition to making git-buildpackage autodetect the pristine-tar branch, I'd like to see this in gbp-clone as well. I've put the the pristine-tar option in debian/gbp.conf inside the repository itself (which is, IMHO, slightly better than ~/.gbp.conf, since it works for anyone who clones the repository instead of just for you). However, I had some problems setting things up with my sponsor since we didn't realise he needed to pass --pristine-tar to gbp-clone as well. I guess git-import-orig and git-import-dsc should support this autodetection as well. If that happens, there is no more need to put the pristine-tar option in debian/gbp.conf anymore, you then only need to pass it to the initial import. Finally, I guess the pristine-tar option on all commands should become trinary, so that the default is "auto" and it can be switched to "yes" or "no" (if it stays binary, there is no way to distinguish between the case "no option passed" or "--no-pristine-tar passed"). Gr. Matthijs
Hi, FTR this messes with anyone who doesn't have the setting. I've just did couple of upload of tiny-html5 scratching my head why they are all rejected before realizing that the other maintainer had not created debian/gbp.conf, but has ~/.gbp.conf setting. I am not sure if the "by default" thing is the right thing to do, but having gbp buildpackage (*) print a warning if --pristine-tar is not used, but "pristine-tar" branch is present would save me some time. Anyway, thank you very much for this useful tool. Debian packaging would be much harder without it. Cheers, Ondrej * - well, all the sub-tools that consume --pristine-tar-----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEw2Gx4wKVQ+vGJel9g3Kkd++uWcIFAmacsDhfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEMz NjFCMUUzMDI5NTQzRUJDNjI1RTk3RDgzNzJBNDc3RUZBRTU5QzIACgkQg3Kkd++u WcLy6w//XrJfPFl7g2NTmp2azZhvCJ9e+UuggiHe5tE86SlTZ0HB80OxxmPH82cN sDrMM0MvXkNwhSvpQXDXtKVcHHGMXxeLJRbHOqnr06Sbwo0VWK8oVsfvXAO2t/3m TQY+j394GmKQIJANz+tjjfNsfVW2NjrD32g99Jiwxv6WtTxizznhKN+SOUW6AECM WL79SXlTOPjPJT38sUcT55OsDtPzo6gbjg4xH0g/IoYorU4DSro26u4OZRqxKKA8 c52kevIvNwltRKhVMQYti1h/kWR39RduyEFeshkgnb3khar1EPmyKy8fpdz2hUIc F0zUtjMkX9Y+mXBpzCEXqfH0JibUVMw6KdBtqZWgO6dA2Y9vN43wUuLnP2FyBIpZ up9qS457Zr4LHVoekT7vMOAzzNpzQqpWBu/QEOSoYk2P9nl4/PW4daUSA+IJPu9k McMz2mge+/cn787xdukwkKZMXqdaDXTcP0ZP6X/qK5uUMqXqdFccNPtyDdCXFOLF O2eSlUdptTUjK/azBF+bj8qIvDyIQcrMklhJ23EE0dNOg6RXmZp99YbvgbmpRb1I LsFCHgUCzgJJ3LUDy/7V1xQLxe+kC88E8rGVI6iBNHDp/yiXLvFA2AYtyoB3h/eb V3gEOIfo01dX4wwmnxjdoxNgKyDR9YJbcGwVixIP4BFQV0seh9U= =hM5H -----END PGP SIGNATURE-----