Skip to content

beeversion -max sorts incorrectly #52

Closed
pmenzel opened this issue Jul 4, 2022 · 2 comments · Fixed by #53
Closed

beeversion -max sorts incorrectly #52

pmenzel opened this issue Jul 4, 2022 · 2 comments · Fixed by #53

Comments

@pmenzel
Copy link
Contributor

pmenzel commented Jul 4, 2022

Someone an idea, why get this:

root:sigalrm:~/# bee update firefox
Installation of firefox-37.0-0.x86_64 failed: firefox-94.0.2-0.x86_64 has a higher version.
  use bee update --force to downgrade
  use bee install --force to install as additional version. (not recommended)

Originally posted by @david in mariux64/bee-files#2703 (comment)

@pmenzel
Copy link
Contributor Author

pmenzel commented Jul 4, 2022

With set -x in /usr/libexec/bee/bee.d/bee-install, we get:

+ available=($(bee-list --available --exact "${fullname}" | grep ${search}))
++ bee-list --available --exact firefox
++ /usr/libexec/bee/bee.d/bee-list --available --exact firefox
++ grep firefox
++ /usr/bin/beeversion -max firefox-3.6.13-0.x86_64 firefox-3.6.14-0.x86_64 firefox-3.6.15-0.x86_64 firefox-3.6.16-0.x86_64 firefox-3.6.16-1.x86_64 firefox-4.0-0.x86_64 firefox-4.0.1-0.x86_64 firefox-6.0-0.x86_64 firefox-6.0-1.x86_64 firefox-7.0.1-0.x86_64 firefox-7.0.1-1.x86_64 firefox-8.0-0.x86_64 firefox-9.0-0.x86_64 firefox-9.0.1-0.x86_64 firefox-10.0.2-0.x86_64 firefox-102.0-0.x86_64 firefox-11.0-0.x86_64 firefox-12.0-0.x86_64 firefox-12.0-1.x86_64 firefox-12.0-2.x86_64 firefox-13.0-0.x86_64 firefox-13.0.1-0.x86_64 firefox-14.0.1-0.x86_64 firefox-15.0.1-0.x86_64 firefox-16.0-0.x86_64 firefox-16.0.1-0.x86_64 firefox-17.0-0.x86_64 firefox-18.0-0.x86_64 firefox-20.0-0.x86_64 firefox-24.0-0.x86_64 firefox-25.0.1-0.x86_64 firefox-29.0.1-0.x86_64 firefox-32.0.3-0.x86_64 firefox-35.0-0.x86_64 firefox-37.0-0.x86_64 firefox-37.0.1-0.x86_64 firefox-37.0.2-0.x86_64 firefox-43.0-0.x86_64 firefox-43.0.4-0.x86_64 firefox-44.0.1-0.x86_64 firefox-45.0-0.x86_64 firefox-45.0.2-0.x86_64 firefox-45.0.2-1.x86_64 firefox-45.0.2-2.x86_64 firefox-45.0.2-3.x86_64 firefox-45.0.2-4.x86_64 firefox-46.0.1-0.x86_64 firefox-46.0.1-1.x86_64 firefox-47.0.1-0.x86_64 firefox-47.0.1-1.x86_64 firefox-47.0.1-2.x86_64 firefox-48.0-0.x86_64 firefox-48.0.2-0.x86_64 firefox-49.0-0.x86_64 firefox-49.0.2-0.x86_64 firefox-50.0-0.x86_64 firefox-50.0.2-0.x86_64 firefox-50.1.0-0.x86_64 firefox-51.0-0.x86_64 firefox-51.0.1-0.x86_64 firefox-52.0-0.x86_64 firefox-52.0.1-0.x86_64 firefox-52.0.2-0.x86_64 firefox-52.0.2-1.x86_64 firefox-52.1.0-0.x86_64 firefox-52.2.0-0.x86_64 firefox-54.0-0.x86_64 firefox-54.0-1.x86_64 firefox-55.0.1-0.x86_64 firefox-55.0.3-0.x86_64 firefox-57.0-0.x86_64 firefox-57.0-1.x86_64 firefox-57.0-2.x86_64 firefox-57.0.1-0.x86_64 firefox-57.0.2-0.x86_64 firefox-57.0.2-1.x86_64 firefox-57.0.4-0.x86_64 firefox-57.0.4-1.x86_64 firefox-58.0-0.x86_64 firefox-58.0.1-0.x86_64 firefox-59.0-0.x86_64 firefox-59.0.1-0.x86_64 firefox-59.0.2-0.x86_64 firefox-59.0.3-0.x86_64 firefox-60.0-0.x86_64 firefox-60.0.1-0.x86_64 firefox-61.0-0.x86_64 firefox-61.0.2-0.x86_64 firefox-62.0-0.x86_64 firefox-63.0.1-0.x86_64 firefox-64.0-0.x86_64 firefox-65.0-0.x86_64 firefox-66.0-0.x86_64 firefox-66.0.3-0.x86_64 firefox-66.0.4-0.x86_64 firefox-66.0.5-0.x86_64 firefox-67.0-0.x86_64 firefox-67.0.2-0.x86_64 firefox-67.0.3-0.x86_64 firefox-67.0.4-0.x86_64 firefox-68.0-0.x86_64 firefox-68.0.1-0.x86_64 firefox-68.0.2-0.x86_64 firefox-69.0-0.x86_64 firefox-69.0.1-0.x86_64 firefox-69.0.2-0.x86_64 firefox-70.0-0.x86_64 firefox-72.0-0.x86_64 firefox-72.0.1-0.x86_64 firefox-73.0-0.x86_64 firefox-74.0-0.x86_64 firefox-74.0.1-0.x86_64 firefox-75.0-0.x86_64 firefox-76.0-0.x86_64 firefox-77.0-0.x86_64 firefox-77.0.1-0.x86_64 firefox-78.0-0.x86_64 firefox-78.0.1-0.x86_64 firefox-78.0.2-0.x86_64 firefox-79.0-0.x86_64 firefox-80.0-0.x86_64 firefox-81.0-0.x86_64 firefox-82.0-0.x86_64 firefox-82.0.2-0.x86_64 firefox-82.0.3-0.x86_64 firefox-83.0-0.x86_64 firefox-84.0.1-0.x86_64 firefox-84.0.2-0.x86_64 firefox-85.0-0.x86_64 firefox-85.0.1-0.x86_64 firefox-86.0.1-0.x86_64 firefox-87.0-0.x86_64 firefox-87.0-1.x86_64 firefox-88.0-0.x86_64 firefox-90.0-0.x86_64 firefox-91.0-0.x86_64 firefox-91.0.1-0.x86_64 firefox-92.0-0.x86_64 firefox-93.0-0.x86_64 firefox-93.0-1.x86_64 firefox-94.0-0.x86_64 firefox-94.0.1-0.x86_64 firefox-94.0.2-0.x86_64
+ maxavail=firefox-37.0-0.x86_64

Confirmed by:

fakeroot bee list -a --exact firefox

firefox-102.0-0.x86_64 is in the list of both.

I guess the sorting files with three digit version numbers.

@pmenzel pmenzel changed the title bee install firefox calculates incorrect maximum version beeversion -max sorts incorrectly Jul 5, 2022
@pmenzel
Copy link
Contributor Author

pmenzel commented Jul 5, 2022

$ /usr/bin/beeversion -max firefox-102.0-0.x86_64 firefox-11.0-0.x86_64
firefox-11.0-0.x86_64

Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant