You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
STDERR.puts "#{File.basename(__FILE__)}: quickly change all debian.org package source URLs in an apt.sources file to something else. Particularly useful for switching between snapshot.debian.org releases."
STDERR.puts "usage: #{File.basename(__FILE__)} <url prefix, e.g. http://snapshot.debian.org/archive/debian/xxxx/> [filename (default: sources.list)|-]"
exit
end
filename ||= 'sources.list'
run_filter(filename) do |input,output|
while line=input.gets
if m = line.match(/^deb.*?\s+(.*?debian\.org.*?\/debian.*?)[\s$]/)