[arch-dev-public] [devtools] [PATCH] install option (-I) does not require a directory containing a PKGBUILD
Andrea Scarpino
andrea at archlinux.org
Mon Oct 11 03:57:15 EDT 2010
When you install a package in a chroot using makechrootpkg -I, the
script checks for a PKGBUILD in the current dir. This patch skip this
check.
>From 00009de3b189660e8d9729f9aead0c9a75bb22aa Mon Sep 17 00:00:00 2001
From: Andrea Scarpino <andrea at archlinux.org>
Date: Mon, 11 Oct 2010 09:54:16 +0200
Subject: [PATCH] install option (-I) does not require a directory
containing a PKGBUILD
---
makechrootpkg | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/makechrootpkg b/makechrootpkg
index 572a215..65db5c5 100755
--- a/makechrootpkg
+++ b/makechrootpkg
@@ -87,7 +87,7 @@ if [ "$EUID" != '0' ]; then
exit 1
fi
-if [ ! -f PKGBUILD ]; then
+if [ ! -f PKGBUILD -a -z "$install_pkg" ]; then
echo 'This must be run in a directory containing a PKGBUILD.'
exit 1
fi
--
1.7.3.1
--
andreascarpino.it
Arch Linux Developer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-install-option-I-does-not-require-a-directory-contai.patch
Type: application/octet-stream
Size: 663 bytes
Desc: not available
URL: <http://mailman.archlinux.org/pipermail/arch-dev-public/attachments/20101011/6a143be0/attachment.obj>
More information about the arch-dev-public
mailing list