Re: pacman bug? (can't replace dir with file)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



> 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


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux