From: Pierre Schmitz <pie...@archlinux.de>

(cherry picked from commit 32d99fb5c287d2dc3bb35b41aa471e9f48ea7910)
---
 test/cases/db-update.bats | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/test/cases/db-update.bats b/test/cases/db-update.bats
index 014fe29..855ba6d 100755
--- a/test/cases/db-update.bats
+++ b/test/cases/db-update.bats
@@ -214,3 +214,16 @@ load ../lib/common
        ! db-update >/dev/null 2>&1
        checkRemovedPackage extra 'foo-pkg-simple-a-1-1-i686.pkg.tar.xz' 'i686'
 }
+
+@test "add package with inconsistent svn fails" {
+       skip # abslibre is broken
+       releasePackage extra 'pkg-simple-a' 'i686'
+
+       pushd "${TMP}/svn-packages-copy/pkg-simple-a/repos/extra-i686" 
>/dev/null
+       sed 's/pkgrel=1/pkgrel=2/g' -i PKGBUILD
+       svn commit -q -m"update pkg to pkgrel=2" >/dev/null
+       popd >/dev/null
+
+       ! db-update >/dev/null 2>&1
+       checkRemovedPackage extra 'foo-pkg-simple-a-1-1-i686.pkg.tar.xz' 'i686'
+}
-- 
2.16.2

_______________________________________________
Dev mailing list
Dev@lists.parabola.nu
https://lists.parabola.nu/mailman/listinfo/dev

Reply via email to