> Hmm, I'd suggest making a simple test package that just does "mkdir
> /foobar" in the build function, then bumping the version and replacing
> it with a file.

Confirmed, should I open a bug for this?

root# pacman -U test-1.0.1-1-i686.pkg.tar.gz
loading package data...
checking dependencies...
(1/1) checking for file conflicts
[#####################################################] 100%
error: failed to prepare transaction (conflicting files)
test: /test exists in filesystem

errors occurred, no packages were upgraded.


Here's the PKGBUILD I created:
pkgname=test
pkgver=1.0.0
pkgrel=1
pkgdesc='Test Package'
arch=('i686' 'x86_64')
url=""
license=('GPL')
depends=()
source=()
md5sums=()

build() {
    mkdir ${pkgdir}/${pkgname}
}


Here's the diff to the updated package:
--- PKGBUILD    2009-03-23 19:05:49.000000000 +0100
+++ PKGBUILD.1  2009-03-23 19:05:56.000000000 +0100
@@ -1,6 +1,6 @@

 pkgname=test
-pkgver=1.0.0
+pkgver=1.0.1
 pkgrel=1
 pkgdesc='Test Package'
 arch=('i686' 'x86_64')
@@ -11,5 +11,5 @@
 md5sums=()

 build() {
-    mkdir ${pkgdir}/${pkgname}
+    touch ${pkgdir}/${pkgname}
 }


-- 
damjan

Reply via email to