Mailinglist Archive: opensuse-buildservice (261 mails)

< Previous Next >
Re: [opensuse-buildservice] Fw: Error in Downloading Packages on an independent setup of Buildservice
  • From: Carsten Hoeger <choeger@xxxxxxxxxxxxxxxx>
  • Date: Fri, 20 Jun 2008 11:09:15 +0200
  • Message-id: <20080620090915.GG4039@xxxxxxxxxxxxxxxx>
On Fri, Jun 20, abhijit srivastav wrote:

3) The download link to the created packages searches the package on the
internet, i.e. official website of openSUSE
https://api.opensuse.org/rpm/home:Admin/openSUSE_10.2/tina/i586/tina-3.7-8.1.i586.rpm
) instead of the loopback address 127.0.42.1. It appears to have some
configuration errors in the vhosts.d or lighttpd.

You need to edit

/srv/www/obs/webclient/app/helpers/package_helper.rb

That's how I solved it.

Find attached the version I use internally.

--
With best regards,

Carsten Hoeger
module PackageHelper


def build_log_url( project, package, platform, arch )
get_frontend_url_for( :controller => 'result' ) +
"/#{project}/#{platform}/#{package}/#{arch}/log"
end


def file_url( project, package, filename )
get_frontend_url_for( :controller => 'source') +
"/#{project}/#{package}/#{filename}"
end


def rpm_url( project, package, repository, arch, filename )
get_frontend_url_for( :controller => 'rpm' ) +
"/#{project}/#{repository}/#{package}/#{arch}/#{filename}"
end

def human_readable_fsize( bytes )
number_to_human_size(bytes, 2)
end

end

< Previous Next >
Follow Ups
References