Skip to content

Commit e449ce3

Browse files
committed
commit-msys2 ignore --all: accommodate for epochs in pkgver
Under certain circumstances, packages' versions have to be either re-set or intentionally diverge. In such a case, Pacman mandates to prefix them version numbers with `<epoch>~`, where `<epoch>` is an incremental number. Let's accommodate for that. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 0f20286 commit e449ce3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commit-msys2.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ ignore)
205205
set -- $( (
206206
git -C "${root%/}"/ ls-files --exclude-standard \
207207
--other var/lib/pacman/local/ |
208-
sed -n 's|^var/lib/pacman/local/\([^/]*\)-r\?[0-9][-0-9a-z_.]*-[1-9][0-9]*/.*|\1|p';
208+
sed -n 's|^var/lib/pacman/local/\([^/]*\)-r\?[0-9][-0-9a-z_.~]*-[1-9][0-9]*/.*|\1|p';
209209
sed -n 's|^# Package: \(.*\)-r\?[0-9][-0-9a-z_.]*-[1-9][0-9]*|\1|p' \
210210
<"${root%/}/.git/info/exclude"
211211
) | sort | uniq

0 commit comments

Comments
 (0)