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
81339a31
Commit
81339a31
authored
Nov 14, 2015
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmgp: add http source support for multi letter dirs
parent
1657d59b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
rpmgp
bin/rpmgp
+17
-4
No files found.
bin/rpmgp
View file @
81339a31
...
...
@@ -82,18 +82,31 @@ get_list()
get_git_list
$SYS
$URL
$LIST
return
fi
echo
"Get list for
$SYS
from
$URL
"
#echo -e -n "\r"
echo
"Get list for
$SYS
from
$URL
..."
#curl -l $URL/ >$LIST
touch
$LIST
# suitable for ftp and http lists
$CURL
-s
-l
$URL
/ |
tee
$LIST
.tmp | html_filter
>
$LIST
rm
-f
$LIST
.failed
(
$CURL
-s
-l
$URL
/
||
touch
$LIST
.failed
)
|
tee
$LIST
.tmp | html_filter
>
$LIST
if
[
-e
$LIST
.failed
]
;
then
#echo -e -n "\r"
warning
"Could't download list for
$SYS
from
$URL
"
#rm -f "$LIST.tmp"
return
fi
# check if there is letter subdirs (Fedora)
for
i
in
$(
cat
$LIST
.tmp
)
;
do
for
i
in
$(
cat
$LIST
.tmp
|
sed
-e
"s|<a href=
\"
||g"
-e
"s|/
\"
>.*||g"
)
;
do
rhas
"
$i
"
rpm
&&
break
# ignore more than one letter
[
-n
"
$(
echo
$i
|
cut
-c2-
)
"
]
&&
continue
echo
"Try get
$URL
/
$i
"
[
"
$i
"
=
"-"
]
&&
continue
#echo -e -n "\r"
echo
"Try get
$URL
/
$i
..."
$CURL
-s
-l
$URL
/
$i
/ | html_filter |
sed
-e
"s|^|
$i
/|g"
>>
$LIST
done
rm
-f
$LIST
.tmp
#echo
#else
# echo "List for $SYS"
fi
...
...
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