summaryrefslogtreecommitdiff
path: root/test/runTest
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-09-05 12:54:37 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-09-05 12:54:37 +0200
commitcca13c2b41ba1389ce4187a728e05a376ad3ad0d (patch)
tree20b72c65928ed05889662f6122302d9b9885ed1c /test/runTest
parent3b903c5c46287cc6f453b3138842715a467c57fb (diff)
Fix updating of same package into different repositories at aonce
See FS#20745
Diffstat (limited to 'test/runTest')
-rwxr-xr-xtest/runTest20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/runTest b/test/runTest
index cfc4ee6..e254de0 100755
--- a/test/runTest
+++ b/test/runTest
@@ -106,6 +106,26 @@ testUpdateAnyPackage() {
rm "${pkgdir}/pkg-any-a/pkg-any-a-1-2-any.pkg.tar.xz"
}
+testUpdateAnyPackageInDifferentRepositoriesAtOnce() {
+ releasePackage extra pkg-any-a any
+
+ pushd "${TMP}/svn-packages-copy/pkg-any-a/trunk/" >/dev/null
+ sed 's/pkgrel=1/pkgrel=2/g' -i PKGBUILD
+ svn commit -q -m"update pkg to pkgrel=2" >/dev/null
+ makepkg -cf --config ${curdir}/lib/makepkg-i686.conf >/dev/null 2>&1
+ mv pkg-any-a-1-2-any.pkg.tar.xz "${pkgdir}/pkg-any-a/"
+ popd >/dev/null
+
+ releasePackage testing pkg-any-a any
+
+ ../db-update
+
+ checkAnyPackage extra pkg-any-a-1-1-any.pkg.tar.xz any
+ checkAnyPackage testing pkg-any-a-1-2-any.pkg.tar.xz any
+
+ rm "${pkgdir}/pkg-any-a/pkg-any-a-1-2-any.pkg.tar.xz"
+}
+
#
# db-remove
#