aptly-dev / aptly

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

unable filter multi package with version #1294

Open longbai opened 5 months ago

longbai commented 5 months ago

I want to only mirror the latest package when i use aptly mirror create -config="/aptly123/aptly.conf" -filter="containerd.io (>= 1.6.32) | docker-ce (>= 26.1.3) | docker-ce-cli (>= 26.1.3) | docker-buildx-plugin (>= 0.14.0) | docker-ce-rootless-extras (>= 26.1.3) | docker-compose-plugin (>= 2.27.0)" docker_bullseye https://download.docker.com/linux/debian bullseye stable

it doesent work, only the first package match the version, the others ignore the version

Detailed Description

Context

Possible Implementation

Your Environment

linux 1.5.0+115+g4bc2180e

vindict-gh commented 5 months ago

I tried to reproduce your error, I believe your filter is the issue. On containerd.io, docker-buildx-plugin and docker-compose-plugin the packages are named straightforwardly upstream leading to filter being valid. However for docker-ce-rootless-extras, docker-ce and docker-ce-cli the actual versions are prefixed with a 5.

Changing your filter to this should do the trick: -filter="containerd.io (>= 1.6.32) | docker-ce (>= 5:26.1.3) | docker-ce-cli (>= 5:26.1.3) | docker-buildx-plugin (>= 0.14.0) | docker-ce-rootless-extras (>= 5:26.1.3) | docker-compose-plugin (>= 2.27.0)"

neolynx commented 3 months ago

@vindict-gh thanks for the reply !

@longbai did this solve your issue ?