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
eb240ebb
Commit
eb240ebb
authored
Mar 29, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm download: implement package download for ALT via apt-get install --print-uris
parent
ab7842ff
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
epm-download
bin/epm-download
+36
-0
No files found.
bin/epm-download
View file @
eb240ebb
...
@@ -127,6 +127,7 @@ __handle_pkg_urls_to_checking()
...
@@ -127,6 +127,7 @@ __handle_pkg_urls_to_checking()
# rm -fv $to_remove_pkg_files
# rm -fv $to_remove_pkg_files
#}
#}
# obsoleted
__epm_get_altpkg_url
()
__epm_get_altpkg_url
()
{
{
info
"TODO: https://packages.altlinux.org/api/branches"
info
"TODO: https://packages.altlinux.org/api/branches"
...
@@ -143,6 +144,7 @@ __epm_get_altpkg_url()
...
@@ -143,6 +144,7 @@ __epm_get_altpkg_url()
echo
"
$alt_base_dist_url
/
$dv
/
$arch
/RPMS.classic/
$filename
"
echo
"
$alt_base_dist_url
/
$dv
/
$arch
/RPMS.classic/
$filename
"
}
}
# obsoleted
__epm_print_url_alt
()
__epm_print_url_alt
()
{
{
local
url
=
"
$1
"
local
url
=
"
$1
"
...
@@ -179,6 +181,40 @@ __epm_download_alt()
...
@@ -179,6 +181,40 @@ __epm_download_alt()
local
checkflag
=
"
$1
"
local
checkflag
=
"
$1
"
shift
shift
fi
fi
load_helper epm-sh-altlinux
# TODO: enable if install --download-only will works
if
tasknumber
"
$@
"
>
/dev/null
;
then
load_helper epm-addrepo
load_helper epm-reposave
load_helper epm-removerepo
load_helper epm-Install
local
installlist
=
"
$(
get_task_packages
$*
)
"
# hack: drop -devel packages to avoid package provided by multiple packages
installlist
=
"
$(
estrlist reg_exclude
".*-devel .*-devel-static .*-checkinstall .*-debuginfo"
"
$installlist
"
)
"
[
-n
"
$verbose
"
]
&&
info
"Packages from task(s):
$installlist
"
try_change_alt_repo
epm_addrepo
"
$@
"
docmd epm download
"
$installlist
"
epm_removerepo
"
$@
"
end_change_alt_repo
return
fi
# old systems ignore reinstall ?
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
eget
$i
done
done
return
# old code:
for
pkg
in
"
$@
"
;
do
for
pkg
in
"
$@
"
;
do
local
url
=
$(
__epm_get_altpkg_url
$pkg
)
local
url
=
$(
__epm_get_altpkg_url
$pkg
)
[
-n
"
$url
"
]
||
warning
"Can't get URL for
$pkg
"
[
-n
"
$url
"
]
||
warning
"Can't get URL for
$pkg
"
...
...
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