mirror of
https://git.proxmox.com/git/debcargo-conf
synced 2025-04-28 16:24:37 +00:00
dev/chain_build.py: fix skipping non-versioned crate present in apt cache when finding existing debs
This commit is contained in:
parent
e024e67f57
commit
7ad8def344
@ -73,7 +73,6 @@ def find_built(specs: list[tuple[str, str]]) -> list[tuple[str, str, str]]:
|
|||||||
chdir('build')
|
chdir('build')
|
||||||
debs = _find('*.deb')
|
debs = _find('*.deb')
|
||||||
chdir('..')
|
chdir('..')
|
||||||
now = now_ts()
|
|
||||||
built = []
|
built = []
|
||||||
_print('Conducting search in apt cache and build/ directory for existing debs')
|
_print('Conducting search in apt cache and build/ directory for existing debs')
|
||||||
for crate, ver in specs:
|
for crate, ver in specs:
|
||||||
@ -82,13 +81,15 @@ def find_built(specs: list[tuple[str, str]]) -> list[tuple[str, str, str]]:
|
|||||||
try:
|
try:
|
||||||
ver = _get_dch_version(crate)
|
ver = _get_dch_version(crate)
|
||||||
except:
|
except:
|
||||||
# version isn't specified, and d/changelog doesn't exist,
|
pass
|
||||||
# means it's yet to be `./update.sh`d, move on
|
|
||||||
continue
|
|
||||||
pkg = aptc.get(f'librust-{_crate}-dev')
|
pkg = aptc.get(f'librust-{_crate}-dev')
|
||||||
if pkg is not None and pkg.candidate.version.startswith(ver):
|
if pkg is not None and (ver == '*' or pkg.candidate.version.startswith(ver)):
|
||||||
built.append((crate, pkg.candidate.version, 'apt'))
|
built.append((crate, pkg.candidate.version, 'apt'))
|
||||||
continue
|
continue
|
||||||
|
if ver == '*':
|
||||||
|
# version isn't specified, and d/changelog doesn't exist,
|
||||||
|
# means it's yet to be `./update.sh`d, move on
|
||||||
|
continue
|
||||||
for deb in debs:
|
for deb in debs:
|
||||||
if f'{_crate}-dev_{ver}' in deb:
|
if f'{_crate}-dev_{ver}' in deb:
|
||||||
built.append((crate, deb, 'build'))
|
built.append((crate, deb, 'build'))
|
||||||
|
Loading…
Reference in New Issue
Block a user