little fixes
This commit is contained in:
parent
c7735f173d
commit
edfb2e9b86
@ -1,9 +1,11 @@
|
|||||||
#! /usr/bin/pkexec /usr/bin/python3
|
#! /usr/bin/pkexec /usr/bin/python3
|
||||||
# -*- coding:utf-8 -*-
|
# -*- coding:utf-8 -*-
|
||||||
|
|
||||||
|
from time import sleep
|
||||||
from pamac import common, config
|
from pamac import common, config
|
||||||
|
|
||||||
if not common.pid_file_exists():
|
if not common.pid_file_exists():
|
||||||
|
common.write_pid_file()
|
||||||
print('refreshing')
|
print('refreshing')
|
||||||
handle = config.handle()
|
handle = config.handle()
|
||||||
for db in handle.get_syncdbs():
|
for db in handle.get_syncdbs():
|
||||||
@ -20,3 +22,5 @@ if not common.pid_file_exists():
|
|||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
print('refreshing {} succeeded'.format(db.name))
|
print('refreshing {} succeeded'.format(db.name))
|
||||||
|
sleep(1)
|
||||||
|
common.rm_pid_file()
|
||||||
|
@ -327,12 +327,12 @@ msgstr ""
|
|||||||
|
|
||||||
#: pamac/transaction.py:331
|
#: pamac/transaction.py:331
|
||||||
#, python-brace-format
|
#, python-brace-format
|
||||||
msgid "{pkgname1} will replace by {pkgname2}\n"
|
msgid "{pkgname1} will be replaced by {pkgname2}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pamac/transaction.py:334
|
#: pamac/transaction.py:334
|
||||||
#, python-brace-format
|
#, python-brace-format
|
||||||
msgid "{pkgname1} conflicts with {pkgname2}\n"
|
msgid "{pkgname1} conflicts with {pkgname2}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pamac/transaction.py:383
|
#: pamac/transaction.py:383
|
||||||
|
@ -328,10 +328,10 @@ class Transaction():
|
|||||||
if event == 'ALPM_QUESTION_INSTALL_IGNOREPKG':
|
if event == 'ALPM_QUESTION_INSTALL_IGNOREPKG':
|
||||||
return 0 #Do not install package in IgnorePkg/IgnoreGroup
|
return 0 #Do not install package in IgnorePkg/IgnoreGroup
|
||||||
if event == 'ALPM_QUESTION_REPLACE_PKG':
|
if event == 'ALPM_QUESTION_REPLACE_PKG':
|
||||||
self.warning += _('{pkgname1} will replace by {pkgname2}\n').format(pkgname1 = data_tupel[0].name, pkgname2 = data_tupel[1].name)
|
self.warning += _('{pkgname1} will be replaced by {pkgname2}').format(pkgname1 = data_tupel[0].name, pkgname2 = data_tupel[1].name)+'\n'
|
||||||
return 1 #Auto-remove conflicts in case of replaces
|
return 1 #Auto-remove conflicts in case of replaces
|
||||||
if event == 'ALPM_QUESTION_CONFLICT_PKG':
|
if event == 'ALPM_QUESTION_CONFLICT_PKG':
|
||||||
self.warning += _('{pkgname1} conflicts with {pkgname2}\n').format(pkgname1 = data_tupel[0], pkgname2 = data_tupel[1])
|
self.warning += _('{pkgname1} conflicts with {pkgname2}').format(pkgname1 = data_tupel[0], pkgname2 = data_tupel[1])+'\n'
|
||||||
return 1 #Auto-remove conflicts
|
return 1 #Auto-remove conflicts
|
||||||
if event == 'ALPM_QUESTION_CORRUPTED_PKG':
|
if event == 'ALPM_QUESTION_CORRUPTED_PKG':
|
||||||
return 1 #Auto-remove corrupted pkgs in cache
|
return 1 #Auto-remove corrupted pkgs in cache
|
||||||
@ -352,7 +352,7 @@ class Transaction():
|
|||||||
if not (level & _logmask):
|
if not (level & _logmask):
|
||||||
return
|
return
|
||||||
if level & pyalpm.LOG_ERROR:
|
if level & pyalpm.LOG_ERROR:
|
||||||
self.error += line
|
#self.error += line
|
||||||
_error = "ERROR: "+line
|
_error = "ERROR: "+line
|
||||||
end_iter = progress_buffer.get_end_iter()
|
end_iter = progress_buffer.get_end_iter()
|
||||||
progress_buffer.insert(end_iter, _error)
|
progress_buffer.insert(end_iter, _error)
|
||||||
|
Loading…
Reference in New Issue
Block a user