Skip to content

Instantly share code, notes, and snippets.

@elieux
Created February 3, 2015 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elieux/8faaf423601d7ef01d0f to your computer and use it in GitHub Desktop.
Save elieux/8faaf423601d7ef01d0f to your computer and use it in GitHub Desktop.
pacman-case-insensitive
$ pacman -U example2-1.0-1-any.pkg.tar.xz
loading packages...
resolving dependencies...
looking for conflicting packages...
Packages (1) example2-1.0-1
Total Installed Size: 0.00 MiB
:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring [######################] 100%
(1/1) checking package integrity [######################] 100%
(1/1) loading package files [######################] 100%
(1/1) checking for file conflicts [######################] 100%
(1/1) checking available disk space [######################] 100%
(1/1) installing example2 [######################] 100%
$ pacman -U example2-2.0-1-any.pkg.tar.xz
loading packages...
resolving dependencies...
looking for conflicting packages...
Packages (1) example2-2.0-1
Total Installed Size: 0.00 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring [######################] 100%
(1/1) checking package integrity [######################] 100%
(1/1) loading package files [######################] 100%
(1/1) checking for file conflicts [######################] 100%
error: failed to commit transaction (conflicting files)
example2: /var/example2 exists in filesystem
Errors occurred, no packages were upgraded.
pkgname=example2
pkgver=1.0
pkgrel=1
arch=('any')
package() {
mkdir "${pkgdir}/var"
echo "example2" > "${pkgdir}/var/EXAMPLE2"
}
pkgname=example2
pkgver=2.0
pkgrel=1
arch=('any')
package() {
mkdir "${pkgdir}/var"
echo "example2" > "${pkgdir}/var/example2"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment