Added "/" to URL paths when reading HTTP repositories
This commit is contained in:
parent
13218841f4
commit
1034afa92d
1 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ module DebImporter
|
|||
# Load and parse a Release file of an APT repository
|
||||
def initialize(dist_url, components)
|
||||
@dist_url = dist_url
|
||||
release_url = dist_url + "Release"
|
||||
release_url = dist_url + "/Release"
|
||||
Rails.logger.debug "Loading Release file from #{release_url}"
|
||||
open(release_url) do |release_data|
|
||||
fields = get_fields(release_data)
|
||||
|
|
@ -42,7 +42,7 @@ module DebImporter
|
|||
# and architecture (e.g. "amd64")
|
||||
def packages(component, architecture)
|
||||
# create path like "main/binary-amd64/Packages"
|
||||
packages_path = "#{component}/binary-#{architecture}/Packages"
|
||||
packages_path = "/#{component}/binary-#{architecture}/Packages"
|
||||
# Check if gzip or uncompressed files exist
|
||||
# (there is no working bzip2 library for Ruby 2.x at the time - 11/2014)
|
||||
for suffix in ['.gz', '']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue