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
f7fd77ae
Commit
f7fd77ae
authored
Mar 29, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add epm download --url for apt-rpm and apt-dpkg systems
parent
eb240ebb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
epm
bin/epm
+4
-0
epm-download
bin/epm-download
+7
-2
No files found.
bin/epm
View file @
f7fd77ae
...
...
@@ -108,6 +108,7 @@ sort=
non_interactive
=
$EPM_AUTO
download
=
download_only
=
print_url
=
interactive
=
force_yes
=
skip_installed
=
...
...
@@ -480,6 +481,9 @@ check_option()
--download-only
)
# HELPOPT: download only the package/tarball (before any convertation)
download_only
=
"--download-only"
;;
--url
)
# HELPOPT: print only URL instead of download package
print_url
=
"--url"
;;
--sort
)
# HELPOPT: sort output, f.i. --sort=size (supported only for packages command)
# TODO: how to read arg?
sort
=
"
$1
"
...
...
bin/epm-download
View file @
f7fd77ae
...
...
@@ -198,7 +198,7 @@ __epm_download_alt()
try_change_alt_repo
epm_addrepo
"
$@
"
docmd epm download
"
$installlist
"
docmd epm download
$print_url
"
$installlist
"
epm_removerepo
"
$@
"
end_change_alt_repo
...
...
@@ -209,6 +209,7 @@ __epm_download_alt()
for
pkg
in
"
$@
"
;
do
for
i
in
$(
sudocmd apt-get
install
-y
--print-uris
--reinstall
"
$pkg
"
|
cut
-f1
-d
" "
|
grep
".rpm'$"
|
sed
-e
"s|^'||"
-e
"s|'
$|
|"
)
;
do
echo
"
$(
basename
"
$i
"
)
"
|
grep
-q
"^
$pkg
"
||
continue
[
-n
"
$print_url
"
]
&&
echo
"
$i
"
&&
continue
eget
$i
done
done
...
...
@@ -239,10 +240,14 @@ epm_download()
case
$PMTYPE
in
apt-dpkg
)
if
[
-n
"
$print_url
"
]
;
then
docmd apt-get download
--print-uris
$*
|
cut
-f1
-d
" "
|
grep
".deb'$"
|
sed
-e
"s|^'||"
-e
"s|'
$|
|"
return
fi
docmd apt-get download
$*
;;
dnf-rpm
)
sudocmd dnf download
$*
sudocmd dnf download
$
print_url
$
*
;;
aptcyg
)
sudocmd apt-cyg download
$*
...
...
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