From 513cfce0061127224dbdbe45ede5ff9e808a66a6 Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Sat, 21 Sep 2024 11:43:30 +0200 Subject: [PATCH] Update to support any compression extension for packages --- update-repo.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/update-repo.sh b/update-repo.sh index c0ec1c6..e3764bf 100755 --- a/update-repo.sh +++ b/update-repo.sh @@ -178,13 +178,13 @@ createPackage() { # Create package $1 # TODO: try manually: can we update db file before sending to remote repo? addPackageToRepo() { # Add package $1 echo "Adding $1 to repository..." - scp $ssh_options $run_directory_path/$1/$1-$2*.pkg.tar.xz $remote_repository/ - repo-add $repo_db_file $run_directory_path/$1/$1-$2*.pkg.tar.xz + scp $ssh_options $run_directory_path/$1/$1-$2*.pkg.tar.* $remote_repository/ + repo-add $repo_db_file $run_directory_path/$1/$1-$2*.pkg.tar.* reg="(linux-lts).+" if [[ $name =~ $reg ]]; then echo "Adding $1-headers and $1-docs to repository..." - repo-add $repo_db_file $run_directory_path/$1/$1-headers-$2*.pkg.tar.xz $run_directory_path/$1/$1-docs-$2*.pkg.tar.xz - scp $ssh_options $run_directory_path/$1/$1-headers-$2*.pkg.tar.xz $run_directory_path/$1/$1-docs-$2*.pkg.tar.xz $remote_repository/ + repo-add $repo_db_file $run_directory_path/$1/$1-headers-$2*.pkg.tar.* $run_directory_path/$1/$1-docs-$2*.pkg.tar.* + scp $ssh_options $run_directory_path/$1/$1-headers-$2*.pkg.tar.* $run_directory_path/$1/$1-docs-$2*.pkg.tar.* $remote_repository/ fi scp $ssh_options $run_directory_path/$repo_db_file $run_directory_path/$repo_db_file.old $run_directory_path/$repo_db_filesfile $run_directory_path/$repo_db_filesfile.old $remote_repository/ }