aboutsummaryrefslogtreecommitdiff
path: root/trunk/src/createpkg
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/createpkg')
-rw-r--r--trunk/src/createpkg4
1 files changed, 4 insertions, 0 deletions
diff --git a/trunk/src/createpkg b/trunk/src/createpkg
index 90fda8e..52116d9 100644
--- a/trunk/src/createpkg
+++ b/trunk/src/createpkg
@@ -358,6 +358,10 @@ function repository_import {
return $EXIT_CODE
fi
+ if ! echo $repository | grep -q ":"; then
+ repository="file://$repository"
+ fi
+
repository_type="`echo $repository | cut -d : -f 1`"
repository_path="`echo $repository | cut -d : -f 2`"