Skip to content
This repository was archived by the owner on Aug 9, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/lib/aur.sh
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ vote_package() {
# give to user all info to build and install Unsupported package from AUR
install_from_aur() {
local cwd
local trust=$AURTRUST
declare -a pkginfo=($(pkgquery -1Aif "%n %i %v %w %o %u %m %l %L" "$1"))
[[ "${pkginfo[1]#-}" ]] || return 1
in_array ${pkginfo[0]} "${AUR_INSTALLED_PKGS[@]}" && return 0
Expand All @@ -206,7 +207,7 @@ install_from_aur() {
echo -e "$CBLINK$CRED$(gettext '( Unsupported package: Potentially dangerous ! )')$C0"

# Build, install/export
package_loop ${pkginfo[0]} 0 || manage_error ${pkginfo[0]} ||
package_loop ${pkginfo[0]} $trust || manage_error ${pkginfo[0]} ||
{ cd "$cwd"; return 1; }
cd "$cwd"
rm -rf "$YAOURTTMPDIR/aur-${pkginfo[0]}"
Expand Down
5 changes: 5 additions & 0 deletions src/man/yaourtrc.5
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,11 @@ If set to 0, don\(cqt check the vote status for inclusion/keeping in [community]
.RS 4
If set to 1, clone the AUR git repository instead of using snapshot tarballs.
.RE
.PP
\fBAURTRUST=0\fR
.RS 4
If set to 1, the default answer for the prompt to edit PKGBUILDs and .install files is set to N.
.RE
.SH "BUILD OPTIONS"
.PP
\fBEXPORT=0\fR
Expand Down
1 change: 1 addition & 0 deletions src/yaourtrc.in
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#AURUPGRADE=0
#AURVOTE=1
#AURUSEGIT=0
#AURTRUST=0

# Build
#EXPORT=0 # Export to 1: EXPORTDIR or PKGDEST
Expand Down