From 0d963e03d2ade93512bad86d8be835cee7776be9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rub=C3=A9n=20Rodr=C3=ADguez?= <ruben@trisquel.info>
Date: Mon, 15 Oct 2012 00:24:07 +0200
Subject: [PATCH] Added check for the existance of the binaries to be replaced
 inside the build jais

---
 makepackage | 1 +
 1 file changed, 1 insertion(+)

diff --git a/makepackage b/makepackage
index f2f15497..779d5ff8 100644
--- a/makepackage
+++ b/makepackage
@@ -146,6 +146,7 @@ EOF
     then
         for BIN in /bin/uname /usr/bin/arch
         do
+        [ -f $BIN ] || continue
         mv $CHROOT/$BIN $CHROOT/$BIN.orig
 cat << EOF > $CHROOT/$BIN
 #!/bin/sh
-- 
GitLab