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
Vladislav
eepm
Commits
c0be0e74
Commit
c0be0e74
authored
Aug 24, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-repack: always use anypackage to rpm function for deb->rpm conversion
parent
97c7f1c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
18 deletions
+16
-18
epm-repack
bin/epm-repack
+16
-18
No files found.
bin/epm-repack
View file @
c0be0e74
#!/bin/sh
#
# Copyright (C) 2017-2018 Etersoft
# Copyright (C) 2017-2018 Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2017-2018
, 2020
Etersoft
# Copyright (C) 2017-2018
, 2020
Vitaly Lipatov <lav@etersoft.ru>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
...
...
@@ -163,6 +163,13 @@ __epm_repack_rpm()
assure_exists alien
||
fatal
assure_exists rpmbuild rpm-build
||
fatal
# TODO: improve
if
echo
"
$*
"
|
grep
"
\.
deb"
;
then
assure_exists dpkg
||
fatal
# TODO: Для установки требует: /usr/share/debconf/confmodule но пакет не может быть установлен
# assure_exists debconf
fi
local
pkg
export
HOME
=
$(
mktemp
-d
)
local
tmpbuilddir
=
$HOME
/repack
...
...
@@ -225,22 +232,13 @@ epm_repack()
# TODO: если у нас rpm, а пакет - deb и наоборот
case
$PKGFORMAT
in
rpm
)
if
__epm_split_by_pkg_type deb
$pkg_files
;
then
__epm_repack_deb_to_rpm
$split_replaced_pkgs
echo
echo
"Adopted packages:"
estrlist list
$repacked_rpms
cp
$repacked_rpms
.
pkg_files
=
"
$(
estrlist exclude
$split_replaced_pkgs
$pkg_files
)
"
fi
if
[
-n
"
$pkg_files
"
]
;
then
__epm_repack_rpm
$pkg_files
||
fatal
echo
echo
"Adopted packages:"
estrlist list
$repacked_rpms
cp
$repacked_rpms
.
fi
__epm_repack_rpm
$pkg_files
||
fatal
echo
echo
"Adapted packages:"
cp
$repacked_rpms
.
for
i
in
$repacked_rpms
;
do
echo
"
$(
pwd
)
/
$(
basename
"
$i
"
)
"
done
;;
deb
)
if
__epm_split_by_pkg_type rpm
$pkg_files
;
then
...
...
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