Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
502a1766
Commit
502a1766
authored
Oct 21, 2015
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmgp: use curl -s
parent
8f5259e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
rpmgp
bin/rpmgp
+4
-5
No files found.
bin/rpmgp
View file @
502a1766
...
@@ -59,10 +59,9 @@ get_git_list()
...
@@ -59,10 +59,9 @@ get_git_list()
local
name
=
$1
local
name
=
$1
local
url
=
$2
local
url
=
$2
local
list
=
$3
local
list
=
$3
for
i
in
$(
curl
$url
|
grep
folder |
sed
-e
"s|.*HREF=
\"
||g"
|
sed
-e
"s|
\"
.*||g"
)
;
do
for
i
in
$(
$CURL
-s
$url
|
grep
folder |
sed
-e
"s|.*HREF=
\"
||g"
|
sed
-e
"s|
\"
.*||g"
)
;
do
curl
$url
/
$i
|
grep
'class="link"'
|
sed
-e
"s|.*href=
\"
||g"
|
sed
-e
"s|
\"
.*||g"
$CURL
-s
$url
/
$i
|
grep
'class="link"'
|
sed
-e
"s|.*href=
\"
||g"
|
sed
-e
"s|
\"
.*||g"
done
>
$list
done
>
$list
}
}
# Using: git_list idx [force]
# Using: git_list idx [force]
...
@@ -86,13 +85,13 @@ get_list()
...
@@ -86,13 +85,13 @@ get_list()
echo
"Get list for
$SYS
from
$URL
"
echo
"Get list for
$SYS
from
$URL
"
#curl -l $URL/ >$LIST
#curl -l $URL/ >$LIST
# suitable for ftp and http lists
# suitable for ftp and http lists
$CURL
-l
$URL
/ |
tee
$LIST
.tmp | html_filter
>
$LIST
$CURL
-
s
-
l
$URL
/ |
tee
$LIST
.tmp | html_filter
>
$LIST
# check if there is letter subdirs (Fedora)
# check if there is letter subdirs (Fedora)
for
i
in
$(
cat
$LIST
.tmp
)
;
do
for
i
in
$(
cat
$LIST
.tmp
)
;
do
rhas
"
$i
"
rpm
&&
break
rhas
"
$i
"
rpm
&&
break
[
-n
"
$(
echo
$i
|
cut
-c2-
)
"
]
&&
continue
[
-n
"
$(
echo
$i
|
cut
-c2-
)
"
]
&&
continue
echo
"Try get
$URL
/
$i
"
echo
"Try get
$URL
/
$i
"
$CURL
-l
$URL
/
$i
/ | html_filter |
sed
-e
"s|^|
$i
/|g"
>>
$LIST
$CURL
-
s
-
l
$URL
/
$i
/ | html_filter |
sed
-e
"s|^|
$i
/|g"
>>
$LIST
done
done
rm
-f
$LIST
.tmp
rm
-f
$LIST
.tmp
#else
#else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment