Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use given repo

  • Loading branch information...
commit 3231d1e1742769a17a72b71f561aefb934adbf0b 1 parent 85e6dd8
@richo authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 upload.sh
View
6 upload.sh
@@ -1,5 +1,9 @@
#!/bin/sh
+if [ -z "$1" ]; then
+ echo "Usage: ./upload.sh REPO_CODENAME">&2
+ exit 1
+fi
if [ $(whoami) != "root" ]; then
echo "only root can add files to the repo"
@@ -39,7 +43,7 @@ fi
for i in $INCOMING/*.changes; do
# Import package to 'sarge' distribution.
- reprepro -Vb . include sid $i
+ reprepro -Vb . include $1 $i
# Delete the referenced files
sed '1,/Files:/d' $i | sed '/BEGIN PGP SIGNATURE/,$d' \
Please sign in to comment.
Something went wrong with that request. Please try again.