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
Nurlan
eepm
Commits
a637045a
Commit
a637045a
authored
2 years ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-repack: on deb convert to an intermediate rpm package if we have repack.d rules
parent
5c69adee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
8 deletions
+27
-8
epm-repack
bin/epm-repack
+27
-8
No files found.
bin/epm-repack
View file @
a637045a
...
...
@@ -270,18 +270,27 @@ __prepare_source_package()
__epm_repack_to_rpm
()
{
local
pkgs
=
"
$*
"
case
$DISTRNAME
in
ALTLinux|ALTServer
)
#case $DISTRNAME in
# ALTLinux|ALTServer)
# ;;
# *)
# assure_distr ALTLinux "install --repack for rpm target"
# ;;
#esac
# Note: install epm-repack for static (package based) dependencies
assure_exists alien
||
fatal
# TODO: check for all systems
case
$PKGFORMAT
in
rpm
)
assure_exists /usr/bin/rpmbuild rpm-build
||
fatal
;;
*
)
assure_distr ALTLinux
"install --repack for rpm target"
deb
)
assure_exists /usr/bin/rpmbuild rpm
||
fatal
;;
esac
# install epm-repack for static (package based) dependencies
assure_exists alien
||
fatal
assure_exists /usr/bin/rpmbuild rpm-build
||
fatal
# TODO: improve
if
echo
"
$pkgs
"
|
grep
-q
"
\.
deb"
;
then
assure_exists dpkg
||
fatal
...
...
@@ -390,7 +399,17 @@ __epm_repack()
__epm_repack_to_rpm
"
$@
"
||
return
;;
deb
)
# FIXME: only one package in $@ is supported
#local pkgname="$(epm print name from "$@")"
__set_version_pkgname
"
$1
"
local
repackcode
=
"
$CONFIGDIR
/repack.d/
$PKGNAME
.sh"
if
[
-x
"
$repackcode
"
]
;
then
__epm_repack_to_rpm
"
$@
"
||
return
[
-n
"
$repacked_pkgs
"
]
||
return
__epm_repack_to_deb
$repacked_pkgs
else
__epm_repack_to_deb
"
$@
"
||
return
fi
;;
*
)
fatal
"
$PKGFORMAT
is not supported for repack yet"
...
...
This diff is collapsed.
Click to expand it.
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