summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-01-26 09:30:06 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2020-01-26 09:30:06 +0100
commit7d3e29f153f78476898186e5530823809dccf314 (patch)
treea7285ca7028606f48ad27322afc1d6742e339ff3
parenta96b783f9cb75e233ebe71b44b41ee09b189c56f (diff)
downloadbuilder-7d3e29f153f78476898186e5530823809dccf314.tar.xz
added another helper script put-packages-onto-mirror (should all go in a manipulate-mirror master script maybe later)
-rwxr-xr-xbin/put-packages-onto-mirror15
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/put-packages-onto-mirror b/bin/put-packages-onto-mirror
new file mode 100755
index 0000000..585a740
--- /dev/null
+++ b/bin/put-packages-onto-mirror
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# put local package files from a list onto the master mirror (in
+# case they are dangling after a db-update)
+
+# shellcheck disable=SC2119,SC2120
+
+# shellcheck source=../lib/load-configuration
+. "${0%/*}/../lib/load-configuration"
+
+filelist=$1
+
+sed 's/\(.*\)/put \1 pool\/\1/' "$filelist" |
+ failsafe_sftp
+