summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2016-12-21 22:24:54 +0100
committerDaniil Baturin <daniil@baturin.org>2016-12-21 22:24:54 +0100
commite119d44d2bc5b0fc8daa7a208199ad9448427af7 (patch)
treea3e3f68990d171b43ebdd7c0a874df2128721bd1
parent1d115aa6e45112c976f70231a48d5fc76be7b7fa (diff)
downloadvyos-build-e119d44d2bc5b0fc8daa7a208199ad9448427af7.tar.gz
vyos-build-e119d44d2bc5b0fc8daa7a208199ad9448427af7.zip
T229: automatically import locally build .deb's from packages/ at build time.
Made it a separate script, if we ever need anything fancier than cp *.deb If not, we can move it to the makefile.
-rw-r--r--Makefile1
-rwxr-xr-xscripts/import-local-packages6
2 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8889604d..9d9576de 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,7 @@ prepare:
rm -rf build/config/*
@scripts/live-build-config
cp -r data/live-build-config/* build/config/
+ @scripts/import-local-packages
@scripts/make-version-file
diff --git a/scripts/import-local-packages b/scripts/import-local-packages
new file mode 100755
index 00000000..be8e1688
--- /dev/null
+++ b/scripts/import-local-packages
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+LOCAL_PKG_DIR=build/config/packages.chroot
+
+mkdir -p $LOCAL_PKG_DIR
+cp packages/*.deb $LOCAL_PKG_DIR