From 2c3e57fd0abc8467092a21378b583392cde5ba07 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Mon, 25 Jan 2010 16:00:55 +0000 Subject: [PATCH] Create the pkgs dir if it does not already exist Patch Contributed By: Nasser Grainawi Review URL: http://codereview.chromium.org/551126 --- import_native_build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/import_native_build.sh b/import_native_build.sh index f7c2b5b8af..cd1ab761ed 100755 --- a/import_native_build.sh +++ b/import_native_build.sh @@ -21,7 +21,10 @@ eval set -- "${FLAGS_ARGV}" # Die on error set -e -cd "${DEFAULT_BUILD_ROOT}/${FLAGS_architecture}/local_packages" +LOCAL_PKG_DIR="${DEFAULT_BUILD_ROOT}/${FLAGS_architecture}/local_packages" + +mkdir -p "${LOCAL_PKG_DIR}" +cd "${LOCAL_PKG_DIR}" DEB_BUILD_ARCH="$(dpkg-architecture -qDEB_BUILD_ARCH)"