mirror of
https://github.com/moparisthebest/pacman
synced 2025-02-28 17:31:52 -05:00
add 'force' to PKGINFO, have repo-add respect it.
Ref: http://www.archlinux.org/pipermail/pacman-dev/2008-January/011023.html Also see FS#9347 and FS#9349. Signed-off-by: Chantry Xavier <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
96ee1bca24
commit
69bc5ea5e2
@ -810,6 +810,9 @@ create_package() {
|
||||
if [ "$CARCH" != "" ]; then
|
||||
echo "arch = $CARCH" >>.PKGINFO
|
||||
fi
|
||||
if [ "$(check_option force)" = "y" ]; then
|
||||
echo "force = true" >> .PKGINFO
|
||||
fi
|
||||
|
||||
local it
|
||||
for it in "${license[@]}"; do
|
||||
|
@ -136,7 +136,7 @@ db_write_entry()
|
||||
# blank out all variables and set pkgfile
|
||||
local pkgfile=$(readlink -f "$1")
|
||||
local pkgname pkgver pkgdesc url builddate packager csize size \
|
||||
group depend backup license replaces provides conflict \
|
||||
group depend backup license replaces provides conflict force \
|
||||
_groups _depends _backups _licenses _replaces _provides _conflicts \
|
||||
startdir
|
||||
|
||||
@ -209,7 +209,7 @@ db_write_entry()
|
||||
[ -n "$builddate" ] && echo -e "%BUILDDATE%\n$builddate\n" >>desc
|
||||
[ -n "$packager" ] && echo -e "%PACKAGER%\n$packager\n" >>desc
|
||||
write_list_entry "REPLACES" "$_replaces" "desc"
|
||||
[ $FORCE -eq 1 ] && echo -e "%FORCE%\n" >>desc
|
||||
[ $FORCE -eq 1 -o -n "$force" ] && echo -e "%FORCE%\n" >>desc
|
||||
|
||||
# create depends entry
|
||||
msg2 "$(gettext "Creating 'depends' db entry...")"
|
||||
|
Loading…
x
Reference in New Issue
Block a user