同日同分支的测试版本前缀完全相同,只剩 +g<sha> 可区分;Debian 版本比较把 hex 当普通文本,新构建可能小于旧构建,apt upgrade 因此拿不到最新包。 build_date() → build_stamp(),改为 YYYYMMDDHHMM,时间与日期拼成一段数字 才能按数值比较。不能写成 20260918T1722:Debian 里字母排在标点之前,带 T 的版本小于同日旧格式包的 20260918.…,修复当天仍抢不过已上传的旧包。 补回归测试,用 dpkg --compare-versions 锁定同日重建更大、且压过旧格式同日包。
After a stable tag vX.Y.Z, untagged commits now produce X.Y.(Z+1)~date.branch.n+gSHA so test DEBs sort above the last official release and still below the next official X.Y.(Z+1).