Skip to content
Browse files

Use given repo

  • Loading branch information...
1 parent 85e6dd8 commit 3231d1e1742769a17a72b71f561aefb934adbf0b @richo committed Mar 19, 2012
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' \

0 comments on commit 3231d1e

Please sign in to comment.
Something went wrong with that request. Please try again.