-%w{debian debian-backports debian-debug debian-security}.each do |archive|
- varname = 'has_srv_mirrors_' + archive.gsub(/[\/-]/,'_')
- if has_variable?(varname) and (eval(varname)) == 'true'
- lines << " Alias /#{archive}/project/trace/ /srv/mirrors/#{archive}/project/trace/"
- lines << " <Directory /srv/mirrors/#{archive}/project/trace/>"
+%w{debian debian-debug debian-ports debian-security}.each do |archive|
+ varname = ('has' + @mirror_basedir_prefix + archive).gsub(/[\/-]/,'_')
+ if has_variable?(varname) and (eval("@"+varname))
+ lines << " Alias /#{archive}/project/trace/ #{@mirror_basedir_prefix}#{archive}/project/trace/"
+ lines << " <Directory #{@mirror_basedir_prefix}#{archive}/project/trace/>"