lib/aptly_repo.rb in aptly_cli-0.2.2 vs lib/aptly_repo.rb in aptly_cli-0.2.3

- old
+ new

@@ -34,11 +34,11 @@ def repo_delete(repo_options = {:name => nil, :force => nil}) uri = "/repos/" + repo_options[:name] if repo_options[:force] == true - uri = uri + "?force=1" + uri += "?force=1" end self.class.delete(uri) end @@ -72,18 +72,18 @@ else uri = "/repos/" + repo_options[:name] + "/packages" end if repo_options[:query] - uri = uri + "?q=" + repo_options[:query] + uri += "?q=" + repo_options[:query] if repo_options[:withdeps] or repo_options[:format] puts "When specifiying specific package query, other options are invalid." end elsif repo_options[:format] - uri = uri + "?format=#{repo_options[:format]}" + uri += "?format=#{repo_options[:format]}" elsif repo_options[:withdeps] == true - uri = uri + "?withDeps=1" + uri += "?withDeps=1" end self.class.get uri end @@ -112,14 +112,14 @@ else uri = "/repos/#{name}/file/#{dir}/#{file}" end if forcereplace == true - uri = uri + "?forceReplace=1" + uri += "?forceReplace=1" end if noremove == true - uri = uri + "?noRemove=1" + uri += "?noRemove=1" end response = self.class.post(uri) case response.code