summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKartik Mohta2017-06-08 19:43:57 -0400
committerKartik Mohta2017-06-08 19:43:57 -0400
commitfb2b122d06c349c7ef8a0f0203b182a162849310 (patch)
treecca99e02082f9a7948bd690a92e89843f4681c5a
parent576a7991e1b90088f3783f4458964f497d8a16d9 (diff)
downloadaur-fb2b122d06c349c7ef8a0f0203b182a162849310.tar.gz
Add conflicts between the python 2 & 3 versions
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD4
2 files changed, 4 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 33ab16320db..06a52f784f5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -15,6 +15,7 @@ pkgname = python-catkin_lint
depends = python
depends = python-catkin_pkg
conflicts = python-catkin-lint
+ conflicts = python2-catkin_lint
replaces = python-catkin-lint
pkgname = python2-catkin_lint
@@ -22,5 +23,6 @@ pkgname = python2-catkin_lint
depends = python2
depends = python2-catkin_pkg
conflicts = python2-catkin-lint
+ conflicts = python-catkin_lint
replaces = python2-catkin-lint
diff --git a/PKGBUILD b/PKGBUILD
index 8a846a8c015..f4a14198577 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -28,7 +28,7 @@ build() {
package_python-catkin_lint() {
depends+=('python' 'python-catkin_pkg')
- conflicts=('python-catkin-lint')
+ conflicts=('python-catkin-lint' 'python2-catkin_lint')
replaces=('python-catkin-lint')
cd "${srcdir}/${_module}-${pkgver}"
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
@@ -36,7 +36,7 @@ package_python-catkin_lint() {
package_python2-catkin_lint() {
depends+=('python2' 'python2-catkin_pkg')
- conflicts=('python2-catkin-lint')
+ conflicts=('python2-catkin-lint' 'python-catkin_lint')
replaces=('python2-catkin-lint')
cd "${srcdir}/${_module}-${pkgver}-python2"
python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build