Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openwrt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Freifunk Luebeck
openwrt
Commits
84043340
Commit
84043340
authored
18 years ago
by
Felix Fietkau
Browse files
Options
Downloads
Patches
Plain Diff
update sourceforge downloading
SVN-Revision: 5721
parent
bc385ec4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/download.pl
+3
-12
3 additions, 12 deletions
scripts/download.pl
with
3 additions
and
12 deletions
scripts/download.pl
+
3
−
12
View file @
84043340
...
...
@@ -80,19 +80,10 @@ sub cleanup
foreach
my
$mirror
(
@ARGV
)
{
if
(
$mirror
=~
/^\@SF\/(.+)$/
)
{
my
$sfpath
=
$
1
;
open
SF
,
"
wget -t1 -q -O- 'http://prdownloads.sourceforge.net/
$sfpath
/
$filename
' |
";
while
(
<
SF
>
)
{
/RADIO NAME=use_default VALUE=(\w+) OnClick="form\.submit\(\)">/
or
/type="radio" name="use_default" value="(\w+)" onclick="form\.submit\(\)"\/>/
and
do
{
push
@mirrors
,
"
http://$1.dl.sourceforge.net/sourceforge/
$sfpath
";
};
/<a href="\/.+\?use_mirror=(\w+)"><b>Download/
and
do
{
push
@mirrors
,
"
http://$1.dl.sourceforge.net/sourceforge/
$sfpath
";
};
# give sourceforge a few more tries, because it redirects to different mirrors
for
(
1
..
5
)
{
push
@mirrors
,
"
http://downloads.sourceforge.net/$1
";
}
push
@mirrors
,
"
http://dl.sourceforge.net/sourceforge/
$sfpath
";
close
SF
;
}
elsif
(
$mirror
=~
/^\@GNU\/(.+)$/
)
{
my
$gnupath
=
$
1
;
push
@mirrors
,
"
ftp://ftp.gnu.org/gnu/
$gnupath
";
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment