[Pkg-owncloud-commits] [owncloud-client] 57/333: OwncloudCmd: Fixup URL

Sandro Knauß hefee-guest at moszumanska.debian.org
Thu Apr 17 23:16:33 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 9237293cc0d84c7b1449289bac807cf179eb281d
Author: Markus Goetz <markus at woboq.com>
Date:   Wed Feb 19 10:57:29 2014 +0100

    OwncloudCmd: Fixup URL
    
    Allow users to specify owncloud(s) or http(s)
---
 src/owncloudcmd/owncloudcmd.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/owncloudcmd/owncloudcmd.cpp b/src/owncloudcmd/owncloudcmd.cpp
index e4d7103..8e8ff2e 100644
--- a/src/owncloudcmd/owncloudcmd.cpp
+++ b/src/owncloudcmd/owncloudcmd.cpp
@@ -105,6 +105,8 @@ void parseOptions( const QStringList& app_args, CmdOptions *options )
         }
         options->target_url.append("remote.php/webdav/");
     }
+    if (options->target_url.startsWith("http"))
+        options->target_url.replace(0, 4, "owncloud");
     options->source_dir = args.takeLast();
     if( !QFile::exists( options->source_dir )) {
         std::cerr << "Source dir does not exists.";

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list