Urpmi hotfix

This commit is contained in:
konstantin.grabar 2011-11-10 18:25:45 +04:00
parent c891e72eca
commit abcef37164
1 changed files with 1 additions and 1 deletions

View File

@ -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 }#{ self.unixname) }/repository/#{ pl.name }#{ tail }",
"urpmi.addmedia #{ head }#{ pl.owner.try(:uname) }/repository/#{ pl.name }#{ tail }",
pl.name
]
end