summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/download.rb12
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/download.rb b/lib/download.rb
index 2f002d2..cb09c42 100644
--- a/lib/download.rb
+++ b/lib/download.rb
@@ -8,8 +8,6 @@ require_relative '../config/config'
require_relative 'package'
require 'net/http'
-MY_BRANCH = 'user/belka/updates'
-
def write_download(target, response)
checksum = Digest::MD5.new
@@ -135,11 +133,11 @@ end
def commit(package_path, version)
message = "#{package_path}: Updated for version #{version}"
- unless system('git', '-C', 'slackbuilds', 'checkout', MY_BRANCH,
+ unless system('git', '-C', 'slackbuilds', 'checkout', CONFIG[:branch],
err: '/dev/null')
- sh "git -C slackbuilds checkout -b #{MY_BRANCH} master"
+ sh 'git', '-C', 'slackbuilds', 'checkout', '-b', CONFIG[:branch], 'master'
end
- sh "git -C slackbuilds add #{package_path}"
- sh %(git -C slackbuilds commit -S -m "#{message}")
- # sh "git -C slackbuilds push origin #{branch}"
+ sh 'git', '-C', 'slackbuilds', 'add', package_path
+ sh 'git', '-C', 'slackbuilds', 'commit', '-S', '-m', message
+ # sh 'git', '-C', 'slackbuilds', 'push', 'origin', CONFIG[:branch]
end