diff options
Diffstat (limited to 'trunk/lib')
-rw-r--r-- | trunk/lib/common.sh | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh index 40306b7..d75c6a3 100644 --- a/trunk/lib/common.sh +++ b/trunk/lib/common.sh @@ -958,7 +958,7 @@ function repository_import { # import a folder into a subversion repository # usage: repository_import <folder> <repository> - local folder="$1" oldfolder + local folder="$1" oldfolder tmpfile local repository="$2" repository_type repository_path if [ ! -d "$folder" ] || [ -z "$repository" ]; then @@ -996,7 +996,16 @@ function repository_import { fi echo "Importing files from $folder into $repository..." - su_svn import $folder $repository -m "initial import" + if tmpfile=`mktemp $TMP/simplepkg_import.XXXXXX`; then + echo "initial import" > $tmpfile + chmod +r $tmpfile + su_svn import $folder $repository -F $tmpfile + rm -f $tmpfile + else + EXIT_CODE="1" + return $EXIT_CODE + fi + if [ "$?" == "0" ]; then echo "Making $folder a working copy of $repository..." oldfolder="$(mktemp -d $(echo $folder | sed -e 's/\/*$//g').XXXXXX)" |