aptly-dev / aptly

aptly - Debian repository management tool
https://www.aptly.info/
MIT License
2.56k stars 374 forks source link

aptly mirror update filter not working #1243

Open sds-kv opened 8 months ago

sds-kv commented 8 months ago

I'm trying to mirror the docker repo and i can't get the version filter to work

Detailed Description

steps to reproduce: $ aptly mirror create -filter "docker-ce (>= 25.0.2)" -filter-with-deps --architectures='amd64' bullseye-docker https://download.docker.com/linux/debian buster stable

$ aptly mirror update bullseye-docker Downloading https://download.docker.com/linux/debian/dists/buster/InRelease... ... Applying filter... Packages filtered: 276 -> 73. Building download queue... Download queue: 51 items (1.03 GiB) Downloading https://download.docker.com/linux/debian/dists/buster/pool/stable/amd64/docker-ce_19.03.6~3-0~debian-buster_amd64.deb... Downloading https://download.docker.com/linux/debian/dists/buster/pool/stable/amd64/docker-ce_20.10.9~3-0~debian-buster_amd64.deb... Downloading https://download.docker.com/linux/debian/dists/buster/pool/stable/amd64/docker-ce_20.10.23~3-0~debian-buster_amd64.deb...

Your Environment

debian bullseye amd64 aptly 1.5.0

vindict-gh commented 3 months ago

I believe you might have the same issue as #1294, changing your filter to "docker-ce (>= 5:25.0.2)" will produce instead :

docker-ce_5:26.1.4-1~debian.11~bullseye_amd64
docker-ce_5:26.1.3-1~debian.11~bullseye_amd64
docker-ce_5:26.1.2-1~debian.11~bullseye_amd64
docker-ce_5:26.1.1-1~debian.11~bullseye_amd64
docker-ce_5:26.1.0-1~debian.11~bullseye_amd64
docker-ce_5:26.0.2-1~debian.11~bullseye_amd64
docker-ce_5:26.0.1-1~debian.11~bullseye_amd64
docker-ce_5:26.0.0-1~debian.11~bullseye_amd64
docker-ce_5:25.0.5-1~debian.11~bullseye_amd64
docker-ce_5:25.0.4-1~debian.11~bullseye_amd64
docker-ce_5:25.0.3-1~debian.11~bullseye_amd64
docker-ce_5:25.0.2-1~debian.11~bullseye_amd64
neolynx commented 1 month ago

@sds-kv has the issue been solved for you ?