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
c3ffc040
Commit
c3ffc040
authored
1 year ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm update: add --content-index for debug purposes
parent
722b6b37
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
5 deletions
+20
-5
epm-search_file
bin/epm-search_file
+4
-1
epm-update
bin/epm-update
+16
-4
No files found.
bin/epm-search_file
View file @
c3ffc040
...
...
@@ -63,9 +63,12 @@ esac
case
$PMTYPE
in
apt-dpkg|aptitude-dpkg
)
# move to update?
if
!
is_command apt-file
;
then
assure_exists apt-file
sudocmd apt-file update
else
update_repo_if_needed
fi
docmd apt-file search
$pkg_filenames
return
;;
packagekit
)
...
...
This diff is collapsed.
Click to expand it.
bin/epm-update
View file @
c3ffc040
...
...
@@ -55,14 +55,23 @@ __save_available_packages()
epm_update
()
{
local
content_index
[
"
$1
"
=
"--content-index"
]
&&
content_index
=
1
&&
shift
[
-z
"
$*
"
]
||
fatal
"No arguments are allowed here"
info
"Running command for update remote package repository database"
info
"Running update the package index files from remote package repository database ..."
local
ret
=
0
warmup_hibase
case
$BASEDISTRNAME
in
"alt"
)
if
[
-n
"
$content_index
"
]
;
then
load_helper epm-sh-altlinux-contents-index
update_alt_contents_index
return
fi
# TODO: hack against cd to cwd in apt-get on ALT
cd
/
sudocmd apt-get update
...
...
@@ -70,7 +79,6 @@ case $BASEDISTRNAME in
cd
-
>
/dev/null
[
"
$ret
"
=
"0"
]
||
return
__check_for_epm_version
#sudocmd apt-get -f install || exit
__epm_touch_pkg
...
...
@@ -94,9 +102,13 @@ case $PMTYPE in
[
"
$ret
"
=
"0"
]
||
return
;;
apt-dpkg
)
if
[
-n
"
$content_index
"
]
;
then
sudocmd apt-file update
return
fi
sudocmd apt-get update
||
return
#
sudocmd apt-get -f install || exit
#sudocmd apt-
get autoremov
e
#
apt-get update retrieve Contents file too
#sudocmd apt-
file updat
e
;;
packagekit
)
docmd pkcon refresh
...
...
This diff is collapsed.
Click to expand it.
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