aptly icon indicating copy to clipboard operation
aptly copied to clipboard

unable filter multi package with version

Open longbai opened this issue 1 year ago • 2 comments

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

longbai avatar May 23 '24 16:05 longbai

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)"

vindict-gh avatar Jun 11 '24 22:06 vindict-gh

@vindict-gh thanks for the reply !

@longbai did this solve your issue ?

neolynx avatar Aug 02 '24 22:08 neolynx

Aptly 1,6,0 has been released: https://github.com/aptly-dev/aptly/discussions/1414

I believe the issue is fixed, please reopen if it still persists...

neolynx avatar Jan 12 '25 12:01 neolynx