From c891e72eca2edbf9a34275b8e0243eedd0660947 Mon Sep 17 00:00:00 2001 From: "konstantin.grabar" Date: Thu, 10 Nov 2011 18:24:18 +0400 Subject: [PATCH] Urpmi hotfix --- app/models/platform.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/platform.rb b/app/models/platform.rb index acb41e4c9..17fa114d1 100644 --- a/app/models/platform.rb +++ b/app/models/platform.rb @@ -60,7 +60,7 @@ class Platform < ActiveRecord::Base tail = (pl.id != self.id && pl.distrib_type == APP_CONFIG['distr_types'].first) ? "/$ARCH/main/release" : "" head = pl.hidden? ? "http://#{ local_pair[:login] }@#{ local_pair[:pass] }:#{ host }/private/" : "http://#{ host }/downloads/" urpmi_commands << [ - "urpmi.addmedia #{ head }#{ pl.owner.try(:uname) }/repository/#{ pl.name }#{ tail }", + "urpmi.addmedia #{ head }#{ self.unixname) }/repository/#{ pl.name }#{ tail }", pl.name ] end