summaryrefslogtreecommitdiff
path: root/src/chroot-tools/libremakepkg
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-05-14 21:40:36 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-05-14 21:40:36 -0400
commitec0c6ec25ad2293e567b4935d77366341d7cb2d1 (patch)
tree8825bfdda0d54294d60a8a7ee366a4dbc1cd4b67 /src/chroot-tools/libremakepkg
parent896867538768126d4d9ddd4a502d5be9d9fe7127 (diff)
libremakepkg: fix adding [repo] to pacman.conf
Diffstat (limited to 'src/chroot-tools/libremakepkg')
-rwxr-xr-xsrc/chroot-tools/libremakepkg4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chroot-tools/libremakepkg b/src/chroot-tools/libremakepkg
index e5130c8..cdd2f39 100755
--- a/src/chroot-tools/libremakepkg
+++ b/src/chroot-tools/libremakepkg
@@ -128,8 +128,8 @@ chroot_init() {
MAKEPKG_CONF="$copydir/etc/makepkg.conf" set_conf_makepkg PKGDEST /pkgdest
MAKEPKG_CONF="$copydir/etc/makepkg.conf" set_conf_makepkg SRCDEST /srcdest
- if grep -q '^\[repo\]' "$copydir/etc/pacman.conf"; then
- cat >> "$copydir/etc/makepkg.conf" <<EOF
+ if ! grep -q '^\[repo\]' "$copydir/etc/pacman.conf"; then
+ cat >> "$copydir/etc/pacman.conf" <<EOF
[repo]
SigLevel = Optional TrustAll
Server = file:///repo