Skip to content

Commit 8d7eba8

Browse files
committed
pacman-helper: allow for new packages to be added
The `git rm` call assumes that there have been previous versions of the same package that now need to be deleted. Let's not do that, as it would prevent e.g. `mingw-w64-llvm-tools` from being deployed (see git-for-windows/MINGW-packages#149 for details). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 93d8e00 commit 8d7eba8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pacman-helper.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ quick_action () { # <action> <file>...
444444
# `:(exclude)<pkgname>-[0-9]*-*-*-*`
445445
s/$/-*-*-*/
446446
s/^/:(exclude)/' |
447-
xargs git rm --sparse --cached -- ||
447+
xargs git rm --sparse --cached --ignore-unmatch -- ||
448448
die "Could not remove the existing versions from the Git branch in $arch"
449449

450450
# Now add the files to the Git branch

0 commit comments

Comments
 (0)