Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
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
etersoft
eepm
Commits
c901d06c
Commit
c901d06c
authored
Aug 24, 2016
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implement cross install for rpm and deb packages
parent
2d9baaeb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
epm-install
bin/epm-install
+11
-4
epm-sh-functions
bin/epm-sh-functions
+6
-0
No files found.
bin/epm-install
View file @
c901d06c
...
...
@@ -277,8 +277,11 @@ __epm_check_if_try_install_deb()
local
TDIR
=
$(
mktemp
-d
)
cd
$TDIR
for
pkg
in
$debpkgs
;
do
showcmd alien
-r
-k
--scripts
"
$pkg
"
# TODO: need check for return status
# TODO: fakeroot for non ALT?
showcmd_store_output alien
-r
-k
--scripts
"
$pkg
"
||
fatal
local
RPMCONVERTED
=
$(
grep
"rpm generated"
$RC_STDOUT
|
sed
-e
"s| generated||g"
)
clean_store_output
epm
install
$RPMCONVERTED
done
rm
-f
$TDIR
/
*
rmdir
$TDIR
/
...
...
@@ -299,12 +302,16 @@ __epm_check_if_try_install_rpm()
[
-n
"
$rpmpkgs
"
]
||
return
1
assure_exists alien
assure_exists fakeroot
local
TDIR
=
$(
mktemp
-d
)
cd
$TDIR
for
pkg
in
$rpmpkgs
;
do
showcmd alien
-d
-k
--scripts
"
$pkg
"
# TODO: need check for return status
showcmd_store_output fakeroot alien
-d
-k
--scripts
"
$pkg
"
clean_store_output
local
DEBCONVERTED
=
$(
grep
"deb generated"
$RC_STDOUT
|
sed
-e
"s| generated||g"
)
clean_store_output
epm
install
$DEBCONVERTED
done
rm
-f
$TDIR
/
*
rmdir
$TDIR
/
...
...
bin/epm-sh-functions
View file @
c901d06c
...
...
@@ -200,6 +200,12 @@ store_output()
#return $PIPESTATUS
}
showcmd_store_output
()
{
showcmd
"
$@
"
store_output
"
$@
"
}
clean_store_output
()
{
rm
-f
$RC_STDOUT
$RC_STDOUT
.pipestatus
...
...
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