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
64435764
Commit
64435764
authored
Aug 24, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-repack: drop special deb-to-rpm function, use anypackage to rpm one for install deb packages
parent
c0be0e74
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
39 deletions
+12
-39
epm-repack
bin/epm-repack
+12
-39
No files found.
bin/epm-repack
View file @
64435764
...
@@ -38,45 +38,6 @@ __epm_split_by_pkg_type()
...
@@ -38,45 +38,6 @@ __epm_split_by_pkg_type()
[
-n
"
$split_replaced_pkgs
"
]
[
-n
"
$split_replaced_pkgs
"
]
}
}
# fills repacked_rpms
__epm_repack_deb_to_rpm
()
{
local
pkg
assure_exists alien
assure_exists dpkg
assure_exists rpmbuild rpm-build
||
fatal
# TODO: Для установки требует: /usr/share/debconf/confmodule но пакет не может быть установлен
# assure_exists debconf
repacked_rpms
=
''
local
TDIR
=
$(
mktemp
-d
)
cd
$TDIR
||
fatal
for
pkg
in
"
$@
"
;
do
# 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"
)
repacked_rpms
=
"
$repacked_rpms
$(
realpath
$RPMCONVERTED
)
"
to_remove_pkg_files
=
"
$to_remove_pkg_files
$(
realpath
$RPMCONVERTED
)
"
clean_store_output
done
cd
-
>
/dev/null
return
0
}
__epm_check_if_try_install_deb
()
{
__epm_split_by_pkg_type deb
"
$@
"
||
return
1
__epm_repack_deb_to_rpm
$split_replaced_pkgs
# TODO: move to install
docmd epm
install
$force
$nodeps
$repacked_rpms
return
0
}
# fills repacked_debs
# fills repacked_debs
__epm_repack_rpm_to_deb
()
__epm_repack_rpm_to_deb
()
{
{
...
@@ -218,6 +179,18 @@ __epm_repack_rpm()
...
@@ -218,6 +179,18 @@ __epm_repack_rpm()
true
true
}
}
__epm_check_if_try_install_deb
()
{
__epm_split_by_pkg_type deb
"
$@
"
||
return
1
__epm_repack_rpm
$split_replaced_pkgs
||
fatal
# TODO: move to install
docmd epm
install
$force
$nodeps
$repacked_rpms
return
0
}
epm_repack
()
epm_repack
()
{
{
# if possible, it will put pkg_urls into pkg_files and reconstruct pkg_filenames
# if possible, it will put pkg_urls into pkg_files and reconstruct pkg_filenames
...
...
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