1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-22 15:58:50 -05:00
pacman/scripts
Renato Silva 0927206fc4 Fix Bazaar cloning in makepkg.
There was some manual check to know if the local repository was really a clone
of the one specified in PKGBUILD. This check has been removed because it is
buggy and not necessary.

It is buggy because this check needs to be semantic, not a simple string
comparison. For example, I was blocked from building a PKGBUILD because Bazaar
was returning two different strings for the same location (for HTTP one was
url-encoded while the other was not, and for local paths one was absolute while
the other was relative). While this may be a bug in Bazaar, the check is
unreliable since the comparison is not semantic (http://foo.com/%2Bplus and
http://foo.com/+plus obviously refer to the same location for example).

Specially, it is useless because the intention is updating the existing local
clone. However, if the local clone is not a real clone of the repository
specified in PKGBUILD (which was what this buggy check tried to tell), next step
which is a pull operation will fail anyway. This is because bzr pull does not
perform merges, it just makes one branch into a mirror of another.

There was a reason provided when this manual check was added for Git, but no
reason provided for copying such check when Bazaar support was added, see
commits below. In fact, Mercurial lacks such manual check.

* c926c39b04
* 3b02f80dcb

Fixes FS#43448.

Signed-off-by: Allan McRae <allan@archlinux.org>
2015-02-14 11:18:20 +10:00
..
library Consistently use 'directory' instead of 'folder' 2014-01-28 21:37:00 +10:00
po Update translations from transifex 2014-12-19 13:53:35 +10:00
.gitignore makepkg: run locally with libtool style wrapper 2013-10-14 13:01:03 +10:00
Makefile.am replace --reference on chmod/chown commands 2014-09-23 21:43:16 +10:00
makepkg-template.pl.in makepkg-template: Remove unused printf format string 2014-12-22 14:01:43 +10:00
makepkg-wrapper.sh.in Update copyright years for 2014 2014-01-06 14:38:50 +10:00
makepkg.sh.in Fix Bazaar cloning in makepkg. 2015-02-14 11:18:20 +10:00
pacman-db-upgrade.sh.in pacman-db-upgrade: set umask 022 2014-12-24 11:15:15 +10:00
pacman-key.sh.in pacman-key: compatibility with gnupg-2.1 2014-11-21 20:54:58 +10:00
pacman-optimize.sh.in replace --reference on chmod/chown commands 2014-09-23 21:43:16 +10:00
pkgdelta.sh.in Remove ts and sw from vim modeline when noet is set 2014-01-28 20:19:25 +10:00
repo-add.sh.in repo-add: declare pkgbase as local 2014-03-27 15:46:07 +10:00