Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
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
korinf
etersoft-build-utils
Commits
837c46a1
Commit
837c46a1
authored
Feb 22, 2010
by
Vitaly Lipatov
Committed by
Vitaly Lipatov
Feb 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aptU: improve for support errors with virtual provides
parent
9b86ef6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
7 deletions
+23
-7
aptU
bin/aptU
+23
-7
No files found.
bin/aptU
View file @
837c46a1
...
@@ -26,8 +26,27 @@ get_requires()
...
@@ -26,8 +26,27 @@ get_requires()
}
}
install_by_requires
()
{
local
RLIST
=
"
$@
"
$SUDO
apt-get
install
--no-remove
$RLIST
local
ERROR
=
$?
REQLIST
=
"
$RLIST
"
if
[
"
$ERROR
"
!=
"0"
]
;
then
local
SKIPPACKAGES
=
`
$SUDO
apt-get
install
--print-uris
$RLIST
2>&1 |
grep
"is a virtual package provided by"
|
cut
-f2
-d
" "
|
sort
-u
`
if
[
-z
"
$SKIPPACKAGES
"
]
;
then
echog
"Can't autohandle error"
return
1
fi
echog
"Autoskip
$SKIPPACKAGES
, try again..."
RLIST
=
$(
do_exclude_list
"
$SKIPPACKAGES
"
"
$RLIST
"
)
install_by_requires
"
$RLIST
"
fi
}
ALREADYHANDLEDAPT
=
"bash sh apt rpm glibc-core glibc-locales glibc-preinstall filesystem alt-gpgkeys"
ALREADYHANDLEDAPT
=
"bash sh apt rpm glibc-core glibc-locales glibc-preinstall filesystem alt-gpgkeys"
ALREADYHANDLEDRPM
=
ALREADYHANDLEDRPM
=
""
install_packages
()
install_packages
()
{
{
local
ERROR
=
local
ERROR
=
...
@@ -38,18 +57,15 @@ install_packages()
...
@@ -38,18 +57,15 @@ install_packages()
ALREADYHANDLEDAPT
=
"
$ALREADYHANDLEDAPT
$LIST
"
ALREADYHANDLEDAPT
=
"
$ALREADYHANDLEDAPT
$LIST
"
REQLIST
=
"
$(
get_requires
$LIST
)
"
REQLIST
=
"
$(
get_requires
$LIST
)
"
REQLIST
=
$(
do_exclude_list
"
$ALREADYHANDLEDRPM
"
"
$REQLIST
"
)
REQLIST
=
$(
do_exclude_list
"
$ALREADYHANDLEDRPM
"
"
$REQLIST
"
)
test
-n
"
$REQLIST
"
||
{
echog
"There is no more req packages to install"
;
return
;
}
$SUDO
apt-get
install
$REQLIST
$VERBOSE
install_by_requires
$REQLIST
ALREADYHANDLEDRPM
=
"
$ALREADYHANDLEDRPM
$REQLIST
"
ALREADYHANDLEDRPM
=
"
$ALREADYHANDLEDRPM
$REQLIST
"
ERROR
=
$?
echog
"Translate rpm requires to package names..."
echog
"Translate rpm requires to package names..."
PACKAGES
=
`
$SUDO
apt-get
install
--print-uris
$REQLIST
|
grep
"is already the newest version"
|
cut
-f1
-d
" "
|
sort
-u
`
PACKAGES
=
`
$SUDO
apt-get
install
--print-uris
$REQLIST
|
grep
"is already the newest version"
|
cut
-f1
-d
" "
|
sort
-u
`
PACKAGES
=
$(
do_exclude_list
"
$ALREADYHANDLEDAPT
"
"
$PACKAGES
"
)
PACKAGES
=
$(
do_exclude_list
"
$ALREADYHANDLEDAPT
"
"
$PACKAGES
"
)
if
[
"
$ERROR
"
!=
"0"
]
;
then
echog
"Install by rpm requires is failed, try to to install converted names"
$SUDO
apt-get
install
$PACKAGES
fi
install_packages
$PACKAGES
install_packages
$PACKAGES
}
}
...
...
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