mirror of
https://github.com/Gator96100/ProxSpace.git
synced 2025-08-20 05:13:25 -07:00
Updated msys2
This commit is contained in:
parent
6a85995508
commit
f0dc1ea8b0
13308 changed files with 689276 additions and 46605 deletions
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# pkgbase.sh - Check the 'pkgbase' variable conforms to requirements.
|
||||
#
|
||||
# Copyright (c) 2014-2016 Pacman Development Team <pacman-dev@archlinux.org>
|
||||
# Copyright (c) 2014-2018 Pacman Development Team <pacman-dev@archlinux.org>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
@ -23,6 +23,7 @@ LIBMAKEPKG_LINT_PKGBUILD_PKGBASE_SH=1
|
|||
|
||||
LIBRARY=${LIBRARY:-'/usr/share/makepkg'}
|
||||
|
||||
source "$LIBRARY/lint_pkgbuild/pkgname.sh"
|
||||
source "$LIBRARY/util/message.sh"
|
||||
|
||||
|
||||
|
@ -30,21 +31,9 @@ lint_pkgbuild_functions+=('lint_pkgbase')
|
|||
|
||||
|
||||
lint_pkgbase() {
|
||||
local ret=0
|
||||
|
||||
if [[ ${pkgbase:0:1} = "-" ]]; then
|
||||
error "$(gettext "%s is not allowed to start with a hyphen.")" "pkgname"
|
||||
return 1
|
||||
fi
|
||||
if [[ ${pkgbase:0:1} = "." ]]; then
|
||||
error "$(gettext "%s is not allowed to start with a dot.")" "pkgbase"
|
||||
ret=1
|
||||
fi
|
||||
if [[ $pkgbase = *[^[:alnum:]+_.@-]* ]]; then
|
||||
error "$(gettext "%s contains invalid characters: '%s'")" \
|
||||
'pkgbase' "${i//[[:alnum:]+_.@-]}"
|
||||
ret=1
|
||||
if [[ -z $pkgbase ]]; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
return $ret
|
||||
lint_one_pkgname "pkgbase" "$pkgbase"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue