]> git.proxmox.com Git - proxmox-backup.git/commitdiff
d/rules: verify version between Cargo.toml and debian/changelog
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 28 Mar 2023 07:41:35 +0000 (09:41 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 28 Mar 2023 07:41:35 +0000 (09:41 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
debian/rules

index b13ba3348815771199f86c315b8051b250b6d034..fae1b186a63423c4f660aabe5505be7afa8bd3cd 100755 (executable)
@@ -21,6 +21,7 @@ export DEB_CARGO_PACKAGE=proxmox-backup
        dh $@ --with=bash-completion
 
 override_dh_auto_configure:
+       perl -ne 'if (/^version\s*=\s*"(\d+(?:\.\d+)+)"/) { my $$v_cargo = $$1; my $$v_deb = $$ENV{DEB_VERSION_UPSTREAM}; die "debian/Cargo.toml version mismatch: $$v_cargo != $$v_deb" if ($$v_cargo ne $$v_deb); }' Cargo.toml
        $(CARGO) prepare-debian $(CURDIR)/debian/cargo_registry --link-from-system
        dh_auto_configure