aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2009-01-16 17:42:22 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2009-01-16 17:42:22 +0000
commit1e365aeb09ccad345aecc38fd7e5306ab1ef6f71 (patch)
tree845e68c34245cd575dd3823a7a7de47756197e09
parent735ed6c48a74dc742689235b12de1a5fbac5d275 (diff)
downloadsimplepkg-1e365aeb09ccad345aecc38fd7e5306ab1ef6f71.tar.gz
simplepkg-1e365aeb09ccad345aecc38fd7e5306ab1ef6f71.tar.bz2
another minor fix at createpkg --import
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@752 04377dda-e619-0410-9926-eae83683ac58
-rw-r--r--trunk/doc/CHANGELOG2
-rw-r--r--trunk/src/createpkg4
2 files changed, 5 insertions, 1 deletions
diff --git a/trunk/doc/CHANGELOG b/trunk/doc/CHANGELOG
index ca17efa..4c5b141 100644
--- a/trunk/doc/CHANGELOG
+++ b/trunk/doc/CHANGELOG
@@ -44,7 +44,7 @@ simplepkg changelog
- config() on postinstall_script now accepting .dist and .sample config file extensions
- added git_source section
- createpkg:
- - new options --status, --update and --commit to manage subversion repository
+ - new options --import, --status, --update and --commit to manage subversion repository
- subversion integration
- minor changes
- renamed config parameter CREATE_ARCH to CREATEPKG_ARCH
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`"