fix sorting for sementic versioning

This commit is contained in:
askiiart 2025-03-06 13:46:21 -06:00
parent e49b6361d2
commit 23ab1b4c69
Signed by untrusted user who does not match committer: askiiart
GPG key ID: 6A32977DAF31746A

4
run.sh
View file

@ -35,9 +35,9 @@ mv ~/rpmbuild/RPMS/x86_64/cavif-$version-* $repo_dir/
cd $repo_dir
# this is the easiest way to make sure it doesn't just fail because no cavif-* exists
# (which only happens on first run)
touch cavif-aaaaaa.rpm
touch cavif-0.rpm
rm $(ls cavif-*.rpm | sort --version-sort | sed '$d')
rm cavif-aaaaaa.rpm
rm cavif-0.rpm
# update repo
createrepo_c .