diff options
| author | Eugen Wissner <belka@caraus.de> | 2021-01-19 07:41:37 +0100 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2021-01-19 07:41:37 +0100 |
| commit | 37e8a329eac342d4184f32116247197b805fe54b (patch) | |
| tree | 7545a4d09dda7f09f18afaaf11e1abe8233888fb /lib | |
| parent | c246444f8d1a93b1c055159ad32911e8240cda80 (diff) | |
| download | slackbuilder-37e8a329eac342d4184f32116247197b805fe54b.tar.gz | |
postfix-pgsql: Updated for version 3.5.9
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/download.rb | 4 | ||||
| -rw-r--r-- | lib/package.rb | 5 |
2 files changed, 3 insertions, 6 deletions
diff --git a/lib/download.rb b/lib/download.rb index 44a9553..8634721 100644 --- a/lib/download.rb +++ b/lib/download.rb @@ -89,7 +89,7 @@ end def clone(repo, tarball) name_version = File.basename tarball, '.tar.xz' - remote_path = tarball[tarball.index('/')..-1] + remote_path = tarball[tarball.index('/')..] if remote_file_exists?(remote_path) uri = URI hosted_sources(remote_path) @@ -105,7 +105,7 @@ def clone(repo, tarball) end def download_and_deploy(uri, tarball) - remote_path = tarball[tarball.index('/')..-1] + remote_path = tarball[tarball.index('/')..] if remote_file_exists?(remote_path) uri = URI hosted_sources(remote_path) diff --git a/lib/package.rb b/lib/package.rb index 90d3c8f..cf6e629 100644 --- a/lib/package.rb +++ b/lib/package.rb @@ -5,10 +5,7 @@ # frozen_string_literal: true class Package - attr_reader :path - attr_reader :version - attr_reader :homepage - attr_reader :requires + attr_reader :path, :version, :homepage, :requires def initialize(path, version:, homepage:, requires: []) @path = path |
