Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
added script findbrokendownloads.rb to print out the distros and vers…
…ions for which download links are no longer working
- Loading branch information
Showing
55 changed files
with
6,298 additions
and
6,193 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/ruby1.9 | ||
|
||
# Supply as command line arg the path to the UNetbootin executable | ||
# Outputs distribution:version tuples that failed to download | ||
|
||
if `whoami`.strip != 'root' | ||
puts 'Must be run as root' | ||
exit() | ||
end | ||
|
||
unetbootin = ARGV[0] | ||
|
||
distrolist = `#{unetbootin} action=listdistros`.split("\n") | ||
distrolist.each {|distro| | ||
versions = `#{unetbootin} distribution="#{distro}" action=listversions`.split("\n") | ||
versions.each {|version| | ||
exitstatus = `#{unetbootin} method=distribution installtype=HDD distribution="#{distro}" version="#{version}" testingdownload=y autoinstall=y` | ||
if exitstatus.include? 'downloadfailed' | ||
puts distro + ':' + version | ||
end | ||
Dir.glob('/tmp/un*').each{ |filepath| | ||
File.delete(filepath) | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.