diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-05-07 01:36:03 -0400 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-05-07 01:36:03 -0400 |
commit | 0cb6e7ab0840196c8b9c0dda64e50fa535b17707 (patch) | |
tree | 56e5cc0379dc37fd5d53cf0c26843270b9c929fe /db-update | |
parent | aca168b4f23826d3dd5ad15d22ad9a564f69a40d (diff) |
Fail loudly if ftp dir is missing
This allows us to intuitively handle on-the-fly repos
by calling `db-update foobar i686` for the foobar-i686
tag, and let us fail on the server side if the repo
hasn't been approved/created by someone with admin rights.
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'db-update')
-rwxr-xr-x | db-update | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -32,7 +32,13 @@ LOCKFILE="/tmp/.repolck.$arch.$reponame" ADDPKGS="" REMPKGS="" -if [ ! `type -p fakeroot` ]; then +if [ ! -d "$ftppath" ]; then + echo "FTP path for this repo ($reponame) is missing" + echo "Please contact a system administrator" + exit 1 +fi + +if [ ! $(type -p fakeroot) ]; then echo "error: fakeroot is missing" >&2 exit 1 fi |