]> git.ipfire.org Git - location/debian/libloc-database.git/commit
Update `versionmangle` to handle time in filename
authorValters Jansons <valter.jansons@gmail.com>
Mon, 17 Mar 2025 18:12:09 +0000 (20:12 +0200)
committerValters Jansons <valter.jansons@gmail.com>
Mon, 17 Mar 2025 18:12:09 +0000 (20:12 +0200)
commit40f29b70f63e53b1a60ae43d5a29e0245f8f4127
treeffd7f8f2a1e423fe99745ab156ed984419a17c88
parent2bd97ffa9ba817150a36bc2c03fddfc00aa87576
Update `versionmangle` to handle time in filename

Since 2024-03-19, the database files have a time component in their
filenames. Previously, versionmange handled the date component,
dropping the dashes from 2024-03-19 to 0~20240319. However, now the
time component gets added as a Debian revision, and messes the logic
up. So with this commit the versionmange transforms timestamp into
a similar upstream component, from -03:45 to ~0345.

Upstream filename 2024-03-20-03:45 now becomes 0~20240320~0345,
while retaining 2024-03-19 as 0~20240319 for backwards compatibility.
debian/watch