Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
epmgpi
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
Ximper Linux
epmgpi
Commits
16e56fcf
Commit
16e56fcf
authored
Apr 16, 2024
by
Roman Alifanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log is visible after package installation error (ALT bug 50026)
parent
a2a3ef46
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
epmgpi
bin/epmgpi
+15
-6
No files found.
bin/epmgpi
View file @
16e56fcf
...
@@ -55,6 +55,13 @@ pkgselection() {
...
@@ -55,6 +55,13 @@ pkgselection() {
echo
"
$PKG_PATH
"
echo
"
$PKG_PATH
"
}
}
yad_log_view
()
{
$YAD_DEFAULT
--title
=
"Лог ошибки"
--no-buttons
--text-align
=
center
\
--text-info
--show-uri
--wrap
--width
=
1200
--height
=
550
--uri-color
=
red
\
--filename
=
"
$EPMGPI_TMP
/epmgpi.log"
exit
1
}
# Проверка, пакет ли файл
# Проверка, пакет ли файл
hack_for_paths_with_spaces
()
{
hack_for_paths_with_spaces
()
{
PKG_NAME
=
$(
basename
--
"
$PKG_PATH
"
|
tr
-d
' '
)
PKG_NAME
=
$(
basename
--
"
$PKG_PATH
"
|
tr
-d
' '
)
...
@@ -80,7 +87,7 @@ installpkg() {
...
@@ -80,7 +87,7 @@ installpkg() {
;;
;;
100
)
100
)
ntf_error
"Пакет не установлен. Команда завершилась с ошибкой."
ntf_error
"Пакет не установлен. Команда завершилась с ошибкой."
e
xit
1
e
cho
"!!! ОШИБКА EPMGPI"
>>
"
$EPMGPI_TMP
/epmgpi.log"
;;
;;
126
)
126
)
...
@@ -89,17 +96,15 @@ installpkg() {
...
@@ -89,17 +96,15 @@ installpkg() {
;;
;;
*
)
*
)
ntf_error
"Пакет не установлен."
ntf_error
"Пакет не установлен."
e
xit
1
e
cho
"!!! ОШИБКА EPMGPI"
>>
"
$EPMGPI_TMP
/epmgpi.log"
;;
;;
esac
esac
)
|
sed
-u
's/^/# /'
|
$YAD_DEFAULT
\
)
|
tee
-a
"
$EPMGPI_TMP
/epmgpi.log"
|
sed
-u
's/^/# /'
|
$YAD_DEFAULT
\
--title
=
"Установка пакета"
\
--title
=
"Установка пакета"
\
--progress
--width
=
800
--height
=
500
\
--progress
--width
=
800
--height
=
500
\
--enable-log
=
"Лог"
--log-expanded
--log-on-top
\
--enable-log
=
"Лог"
--log-expanded
--log-on-top
\
--auto-kill
--auto-close
\
--auto-kill
--auto-close
}
}
show_help
()
{
show_help
()
{
...
@@ -129,6 +134,10 @@ main() {
...
@@ -129,6 +134,10 @@ main() {
repackq
repackq
installpkg
installpkg
if
grep
-q
"!!! ОШИБКА EPMGPI"
"
$EPMGPI_TMP
/epmgpi.log"
;
then
yad_log_view
fi
}
}
# Обработка аргументов перед вызовом main
# Обработка аргументов перед вызовом main
...
...
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