sstream-mirror max options doesn't work with filtering for versions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
simplestreams (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Won't Fix
|
Undecided
|
Unassigned | ||
Eoan |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
On eoan:
ubuntu@eoan:~$ apt list --installed simplestreams
Listing... Done
simplestreams/
ubuntu@eoan:~$ sstream-mirror --no-verify --max=1 --progress --path=
+ com.ubuntu.
+ com.ubuntu.
+ com.ubuntu.
+ com.ubuntu.
+ com.ubuntu.
+ com.ubuntu.
174 Mb change
On bionic:
root@iptv-
Listing... Done
simplestreams/
N: There are 2 additional versions. Please use the '-a' switch to see them.
root@bionic:~# sstream-mirror --no-verify --max=1 --progress --path=
~(2.4|2.6)' --dry-run
0 Mb change
Same thing with the non-dev version (from bionic-updates):
root@bionic:~# apt list --installed simplestreams
Listing... Done
simplestreams/
N: There is 1 additional version. Please use the '-a' switch to see it
root@bionic:~# sstream-mirror --no-verify --max=1 --progress --path=
~(2.4|2.6)' --dry-run
0 Mb change
Changed in simplestreams (Ubuntu Eoan): | |
status: | New → Fix Released |
Changed in simplestreams (Ubuntu): | |
status: | New → Fix Released |
Changed in simplestreams (Ubuntu Bionic): | |
status: | New → Triaged |
tags: | added: server-todo |
description: | updated |
Changed in simplestreams (Ubuntu Bionic): | |
status: | Triaged → In Progress |
Hi,
I come by trying to close or revive dormant bugs.
I can confirm what you report and it seems that it works in all latter releases.
But interestingly I also found that even using a newer version in Bionic (like from backports) won't help:
$ apt install simplestreams= 0.1.0-48- gb936edd4- 0ubuntu1~ bpo18.04. 1 streams/ v1/index2. sjson https:/ /streams. canonical. com/juju/ tools ./ arch=amd64 'release~ (xenial| bionic) ' 'version ~(2.4|2.6)' --dry-run
...
$ sstream-mirror --no-verify --max=1 --progress --path=
0 Mb change
Still filters out all of them.
And BTW in case anyone wonders, without --max being set we get many results
... juju:18. 04:amd64 20180725 2.4.1-bionic-amd64 agent/2. 4.1/juju- 2.4.1-ubuntu- amd64.tgz 21 Mb juju:18. 04:amd64 20180703 2.4.0-bionic-amd64 agent/2. 4.0/juju- 2.4.0-ubuntu- amd64.tgz 21 Mb
+ com.ubuntu.
+ com.ubuntu.
890 Mb change
I'm wondering if simplestreams might be affected, but the issue being in another python component.
In any case, to act further this would need a debugging session where/why the filtering on Bionic looses that.