summaryrefslogtreecommitdiff
path: root/test/test.d/db-repo-add.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/test.d/db-repo-add.sh')
-rwxr-xr-xtest/test.d/db-repo-add.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/test.d/db-repo-add.sh b/test/test.d/db-repo-add.sh
index 54dd704..2b76fad 100755
--- a/test/test.d/db-repo-add.sh
+++ b/test/test.d/db-repo-add.sh
@@ -11,10 +11,10 @@ testAddSimplePackages() {
for pkgbase in ${pkgs[@]}; do
for arch in ${arches[@]}; do
- cp "${pkgdir}/${pkgbase}/${pkgbase}-1-1-${arch}.pkg.tar.xz" "${root_dir}/${native_packages_pool}/"
- touch "${root_dir}/${native_packages_pool}/${pkgbase}-1-1-${arch}.pkg.tar.xz.sig"
- ln -s "${root_dir}/${native_packages_pool}/${pkgbase}-1-1-${arch}.pkg.tar.xz" "${root_dir}/extra/os/${arch}/"
- ln -s "${root_dir}/${native_packages_pool}/${pkgbase}-1-1-${arch}.pkg.tar.xz.sig" "${root_dir}/extra/os/${arch}/"
+ cp "${pkgdir}/${pkgbase}/${pkgbase}-1-1-${arch}.pkg.tar.xz" "${root_dir}/${main_packages_pool}/"
+ touch "${root_dir}/${main_packages_pool}/${pkgbase}-1-1-${arch}.pkg.tar.xz.sig"
+ ln -s "${root_dir}/${main_packages_pool}/${pkgbase}-1-1-${arch}.pkg.tar.xz" "${root_dir}/extra/os/${arch}/"
+ ln -s "${root_dir}/${main_packages_pool}/${pkgbase}-1-1-${arch}.pkg.tar.xz.sig" "${root_dir}/extra/os/${arch}/"
../db-repo-add extra ${arch} ${pkgbase}-1-1-${arch}.pkg.tar.xz
done
done
@@ -35,10 +35,10 @@ testAddMultiplePackages() {
for arch in ${arches[@]}; do
add_pkgs=()
for pkgbase in ${pkgs[@]}; do
- cp "${pkgdir}/${pkgbase}/${pkgbase}-1-1-${arch}.pkg.tar.xz" "${root_dir}/${native_packages_pool}/"
- touch "${root_dir}/${native_packages_pool}/${pkgbase}-1-1-${arch}.pkg.tar.xz.sig"
- ln -s "${root_dir}/${native_packages_pool}/${pkgbase}-1-1-${arch}.pkg.tar.xz" "${root_dir}/extra/os/${arch}/"
- ln -s "${root_dir}/${native_packages_pool}/${pkgbase}-1-1-${arch}.pkg.tar.xz.sig" "${root_dir}/extra/os/${arch}/"
+ cp "${pkgdir}/${pkgbase}/${pkgbase}-1-1-${arch}.pkg.tar.xz" "${root_dir}/${main_packages_pool}/"
+ touch "${root_dir}/${main_packages_pool}/${pkgbase}-1-1-${arch}.pkg.tar.xz.sig"
+ ln -s "${root_dir}/${main_packages_pool}/${pkgbase}-1-1-${arch}.pkg.tar.xz" "${root_dir}/extra/os/${arch}/"
+ ln -s "${root_dir}/${main_packages_pool}/${pkgbase}-1-1-${arch}.pkg.tar.xz.sig" "${root_dir}/extra/os/${arch}/"
add_pkgs[${#add_pkgs[*]}]=${pkgbase}-1-1-${arch}.pkg.tar.xz
done
../db-repo-add extra ${arch} ${add_pkgs[@]}