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
e1b0e984
Commit
e1b0e984
authored
May 13, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm: implement --put-to-repo=/path/repo support
parent
5fa5c5c1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
35 additions
and
1 deletion
+35
-1
epm
bin/epm
+3
-0
epm-install
bin/epm-install
+6
-0
epm-install-alt
bin/epm-install-alt
+6
-0
epm-install-apt-dpkg
bin/epm-install-apt-dpkg
+7
-0
epm-install-rpm
bin/epm-install-rpm
+8
-1
epm-repopkg
bin/epm-repopkg
+5
-0
No files found.
bin/epm
View file @
e1b0e984
...
...
@@ -533,6 +533,9 @@ check_option()
--save-only
)
# HELPOPT: save the package/tarball after all convertations (instead of install it)
save_only
=
"--save-only"
;;
--put-to-repo
=
*
)
# HELPOPT: put the package after all transformations to the repo (--put-to-repo=/path/to/repo)
put_to_repo
=
"
$(
echo
"
$1
"
|
sed
-e
's|--put-to-repo=||'
)
"
;;
--download-only
)
# HELPOPT: download only the package/tarball (before any convertation)
download_only
=
"--download-only"
;;
...
...
bin/epm-install
View file @
e1b0e984
...
...
@@ -375,6 +375,12 @@ epm_install_files()
return
fi
if
[
-n
"
$put_to_repo
"
]
;
then
load_helper epm-repopkg
epm_put_to_repo
$files
return
fi
case
$PMTYPE
in
packagekit
)
...
...
bin/epm-install-alt
View file @
e1b0e984
...
...
@@ -40,6 +40,12 @@ epm_install_files_alt()
return
fi
if
[
-n
"
$put_to_repo
"
]
;
then
load_helper epm-repopkg
epm_put_to_repo
$files
return
fi
__epm_check_if_src_rpm
$files
if
[
-z
"
$repacked_pkgs
"
]
;
then
...
...
bin/epm-install-apt-dpkg
View file @
e1b0e984
...
...
@@ -38,6 +38,13 @@ epm_install_files_apt_dpkg()
return
fi
if
[
-n
"
$put_to_repo
"
]
;
then
load_helper epm-repopkg
epm_put_to_repo
$files
return
fi
# TODO: if dpkg can't install due missed deps, trying with apt (as for now, --refuse-depends, --refuse-breaks don't help me)
if
[
-n
"
$nodeps
"
]
;
then
...
...
bin/epm-install-rpm
View file @
e1b0e984
...
...
@@ -21,7 +21,7 @@ epm_install_files_rpm()
{
local
files
=
"
$*
"
[
-z
"
$files
"
]
&&
return
if
__epm_repack_if_needed
$files
;
then
[
-n
"
$repacked_pkgs
"
]
||
fatal
"Can't convert
$files
"
files
=
"
$repacked_pkgs
"
...
...
@@ -33,6 +33,13 @@ epm_install_files_rpm()
return
fi
if
[
-n
"
$put_to_repo
"
]
;
then
load_helper epm-repopkg
epm_put_to_repo
$files
return
fi
__epm_check_if_src_rpm
$files
# --replacepkgs: Install the Package Even If Already Installed
...
...
bin/epm-repopkg
View file @
e1b0e984
...
...
@@ -136,3 +136,8 @@ esac
}
# call with packages to put to $put_to_repo
epm_put_to_repo
()
{
epm_repo_pkgupdate
"
$put_to_repo
"
"
$@
"
}
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