Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1274547 > unrolled thread

[PATCH] scripts/package/buildtar: don't complain if lib/ is missing

Started byJim Davis <jim.epost@gmail.com>
First post2015-11-21 01:00 +0100
Last post2015-11-21 01:00 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] scripts/package/buildtar: don't complain if lib/ is missing Jim Davis <jim.epost@gmail.com> - 2015-11-21 01:00 +0100

#1274547 — [PATCH] scripts/package/buildtar: don't complain if lib/ is missing

FromJim Davis <jim.epost@gmail.com>
Date2015-11-21 01:00 +0100
Subject[PATCH] scripts/package/buildtar: don't complain if lib/ is missing
Message-ID<qx3KW-5Ka-5@gated-at.bofh.it>
Building a tinyconfig kernel or similar stripped-down configurations
may not have a lib directory to tar up.  Test for a lib directory to
avoid an unnecessary error message.

Signed-off-by: Jim Davis <jim.epost@gmail.com>
---
 scripts/package/buildtar | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/scripts/package/buildtar b/scripts/package/buildtar
index e046bff33589..b52475d2be3b 100755
--- a/scripts/package/buildtar
+++ b/scripts/package/buildtar
@@ -129,7 +129,11 @@ esac
 	if tar --owner=root --group=root --help >/dev/null 2>&1; then
 		opts="--owner=root --group=root"
 	fi
-	tar cf - -C "$tmpdir" boot/ lib/ $opts | ${compress} > "${tarball}${file_ext}"
+	lib=
+	if test -d "$tmpdir/lib"; then
+		lib="lib/"
+	fi
+	tar cf - -C "$tmpdir" boot/ $lib $opts | ${compress} > "${tarball}${file_ext}"
 )
 
 echo "Tarball successfully created in ${tarball}${file_ext}"
-- 
2.6.2.195.g0c4dd78

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web