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
Nurlan
eepm
Commits
500f16e5
Commit
500f16e5
authored
Nov 23, 2019
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm: add support for a few tasks in addrepo/removerepo/install
parent
f78e46eb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
13 deletions
+22
-13
epm-addrepo
bin/epm-addrepo
+2
-2
epm-install
bin/epm-install
+6
-8
epm-removerepo
bin/epm-removerepo
+14
-3
No files found.
bin/epm-addrepo
View file @
500f16e5
...
@@ -94,7 +94,7 @@ __epm_addrepo_altlinux()
...
@@ -94,7 +94,7 @@ __epm_addrepo_altlinux()
assure_exists apt-repo
assure_exists apt-repo
if
tasknumber
"
$repo
"
>
/dev/null
;
then
if
tasknumber
"
$repo
"
>
/dev/null
;
then
sudocmd
apt-repo add
$(
tasknumber
"
$repo
"
)
sudocmd
_foreach
'apt-repo add'
$(
tasknumber
"
$repo
"
)
return
return
fi
fi
...
@@ -118,7 +118,7 @@ local repo="$(eval echo "$quoted_args")"
...
@@ -118,7 +118,7 @@ local repo="$(eval echo "$quoted_args")"
case
$DISTRNAME
in
case
$DISTRNAME
in
ALTLinux
)
ALTLinux
)
__epm_addrepo_altlinux
$
repo
__epm_addrepo_altlinux
$
pkg_names
return
return
;;
;;
esac
esac
...
...
bin/epm-install
View file @
500f16e5
...
@@ -538,14 +538,12 @@ epm_print_install_names_command()
...
@@ -538,14 +538,12 @@ epm_print_install_names_command()
epm_install
()
epm_install
()
{
{
if
tasknumber
"
$pkg_names
"
>
/dev/null
;
then
if
[
"
$DISTRNAME
"
=
"ALTLinux"
]
;
then
assure_distr ALTLinux
"install with task number"
if
tasknumber
"
$pkg_names
"
>
/dev/null
;
then
assure_exists apt-repo
assure_exists apt-repo
local
task
sudocmd_foreach
"apt-repo test"
"
$(
tasknumber
$pkg_names
)
"
for
task
in
$(
tasknumber
"
$pkg_names
"
)
;
do
return
sudocmd apt-repo
test
$task
fi
done
return
fi
fi
if
[
-n
"
$show_command_only
"
]
;
then
if
[
-n
"
$show_command_only
"
]
;
then
...
...
bin/epm-removerepo
View file @
500f16e5
...
@@ -25,6 +25,7 @@ local repo="$(eval echo $quoted_args)"
...
@@ -25,6 +25,7 @@ local repo="$(eval echo $quoted_args)"
case
$DISTRNAME
in
case
$DISTRNAME
in
ALTLinux
)
ALTLinux
)
assure_exists apt-repo
case
"
$repo
"
in
case
"
$repo
"
in
autoimports
)
autoimports
)
info
"remove autoimports repo"
info
"remove autoimports repo"
...
@@ -49,14 +50,24 @@ case $DISTRNAME in
...
@@ -49,14 +50,24 @@ case $DISTRNAME in
;;
;;
*
)
*
)
if
tasknumber
"
$repo
"
>
/dev/null
;
then
if
tasknumber
"
$repo
"
>
/dev/null
;
then
repo
=
"
$(
epm repolist |
grep
"repo/
$(
tasknumber
"
$repo
"
)
"
| line
)
"
#sudocmd apt-repo rm all tasks
# "
#return
local
tn
for
tn
in
$(
tasknumber
"
$repo
"
)
;
do
repoline
=
"
$(
epm repolist |
grep
" repo/
$tn
/"
| line
)
"
#"
[
-n
"
$repoline
"
]
||
{
info
"Can't find
$tn
task in the repository list"
;
continue
;
}
sudocmd apt-repo
rm
"
$repoline
"
# try again to remove possible x86_64-i586
repoline
=
"
$(
epm repolist |
grep
" repo/
$tn
/"
| line
)
"
#"
[
-n
"
$repoline
"
]
||
continue
sudocmd apt-repo
rm
"
$repoline
"
done
return
0
fi
fi
;;
;;
esac
esac
[
-n
"
$repo
"
]
||
fatal
"No such repo or task. Use epm remove repo [autoimports|archive|tasks/TASKNUMBER]"
[
-n
"
$repo
"
]
||
fatal
"No such repo or task. Use epm remove repo [autoimports|archive|tasks/TASKNUMBER]"
assure_exists apt-repo
sudocmd apt-repo
rm
"
$repo
"
sudocmd apt-repo
rm
"
$repo
"
return
return
;;
;;
...
...
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