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
4dba1a5d
You need to sign in or sign up before continuing.
Commit
4dba1a5d
authored
May 22, 2013
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmgs: fix get xz tarball
parent
2c755a03
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
rpmgs
bin/rpmgs
+4
-4
tarball
share/eterbuild/functions/tarball
+5
-0
No files found.
bin/rpmgs
View file @
4dba1a5d
...
...
@@ -120,10 +120,10 @@ function get_targz()
function
get_tarxz
()
{
BIN7ZIP
=
/usr/bin/7
z
test
-x
$BIN
7ZIP
||
return
local
BIN
=
/usr/bin/x
z
test
-x
$BIN
||
return
get_archive tar.xz
||
return
$BIN
7ZIP
x
$WEXT
.tar.xz
&&
return
$BIN
-d
$WEXT
.tar.xz
&&
return
rm
-fv
$WEXT
.tar.xz
return
1
}
...
...
@@ -212,7 +212,7 @@ function get_source()
# download GETSOURCE url to tar.bz2 or tar (set WEXT as without extension name)
download_any_tarball
()
{
get_tarbz2
||
get_targz
||
get_tgz
||
get_7z
||
get_zip
||
get_tbz2
||
get_tbz
||
get_tar
||
get_tarxz
||
get_r
ar
||
dir_name
||
fatal
"Cannot retrieve
$GETSOURCE
"
get_tarbz2
||
get_targz
||
get_tgz
||
get_7z
||
get_zip
||
get_tbz2
||
get_tbz
||
get_tar
xz
||
get_rar
||
get_t
ar
||
dir_name
||
fatal
"Cannot retrieve
$GETSOURCE
"
}
# param: spec name number (f.i., url for Source-url)
...
...
share/eterbuild/functions/tarball
View file @
4dba1a5d
...
...
@@ -103,6 +103,11 @@ copy_tarball_to_tar()
return
fi
if
[
!
${
SNAME
/.tar.xz/
}
=
"
$SNAME
"
]
;
then
a
=
xz
-d
"
$SNAME
"
>
"
$TNAME
"
return
fi
if
[
!
${
SNAME
/.tgz/
}
=
"
$SNAME
"
]
;
then
gunzip
-c
"
$SNAME
"
>
"
$TNAME
"
return
...
...
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