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
f7683000
Commit
f7683000
authored
Oct 02, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmgs: fix download result checking (really skip broken downloaded)
parent
9c7eb885
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
7 deletions
+21
-7
rpmgs
bin/rpmgs
+21
-7
No files found.
bin/rpmgs
View file @
f7683000
...
@@ -80,19 +80,25 @@ get_archive1()
...
@@ -80,19 +80,25 @@ get_archive1()
get_tarbz2
()
get_tarbz2
()
{
{
get_archive tar.bz2
||
return
get_archive tar.bz2
||
return
bunzip
-t
$WEXT
.tar.bz2
&&
return
||
rm
-fv
$WEXT
.tar.bz2
bunzip
-t
$WEXT
.tar.bz2
&&
return
rm
-fv
$WEXT
.tar.bz2
return
1
}
}
get_bz2
()
get_bz2
()
{
{
get_archive1 bz2
||
return
get_archive1 bz2
||
return
bunzip
-t
$WEXT
.bz2
&&
return
||
rm
-fv
$WEXT
.bz2
bunzip
-t
$WEXT
.bz2
&&
return
rm
-fv
$WEXT
.bz2
return
1
}
}
function
get_gz
()
function
get_gz
()
{
{
get_archive1 gz
||
return
get_archive1 gz
||
return
gunzip
-f
$WEXT
.gz
&&
return
||
rm
-fv
$WEXT
.gz
gunzip
-f
$WEXT
.gz
&&
return
rm
-fv
$WEXT
.gz
return
1
}
}
function
get_raw
()
function
get_raw
()
...
@@ -106,7 +112,9 @@ function get_raw()
...
@@ -106,7 +112,9 @@ function get_raw()
function
get_targz
()
function
get_targz
()
{
{
get_archive tar.gz
||
return
get_archive tar.gz
||
return
gunzip
-f
$WEXT
.tar.gz
&&
return
||
rm
-fv
$WEXT
.tar.gz
gunzip
-f
$WEXT
.tar.gz
&&
return
rm
-fv
$WEXT
.tar.gz
return
1
}
}
function
get_tar
()
function
get_tar
()
...
@@ -118,21 +126,27 @@ function get_tar()
...
@@ -118,21 +126,27 @@ function get_tar()
function
get_tgz
()
function
get_tgz
()
{
{
get_archive tgz
||
return
get_archive tgz
||
return
gunzip
-f
$WEXT
.tgz
&&
return
||
rm
-fv
$WEXT
.tgz
gunzip
-f
$WEXT
.tgz
&&
return
rm
-fv
$WEXT
.tgz
return
1
}
}
function
get_tbz2
()
function
get_tbz2
()
{
{
get_archive tbz2
||
return
get_archive tbz2
||
return
mv
-f
$WEXT
.tbz2
$WEXT
.tar.bz2
mv
-f
$WEXT
.tbz2
$WEXT
.tar.bz2
bunzip
-t
$WEXT
.tar.bz2
&&
return
||
rm
-fv
$WEXT
.tar.bz2
bunzip
-t
$WEXT
.tar.bz2
&&
return
rm
-fv
$WEXT
.tar.bz2
return
1
}
}
function
get_tbz
()
function
get_tbz
()
{
{
get_archive tbz
||
return
get_archive tbz
||
return
mv
-f
$WEXT
.tbz
$WEXT
.tar.bz2
mv
-f
$WEXT
.tbz
$WEXT
.tar.bz2
bunzip
-t
$WEXT
.tar.bz2
&&
return
||
rm
-fv
$WEXT
.tar.bz2
bunzip
-t
$WEXT
.tar.bz2
&&
return
rm
-fv
$WEXT
.tar.bz2
return
1
}
}
# TODO: use external converter
# TODO: use external converter
...
...
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