Skip to content

Commit

Permalink
Use given repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich Healey committed Mar 19, 2012
1 parent 85e6dd8 commit 3231d1e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion upload.sh
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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' \
Expand Down

0 comments on commit 3231d1e

Please sign in to comment.