forked from cromer/pamac-classic
manually merge request #1
This commit is contained in:
parent
f888761d8a
commit
7b04b92144
@ -18,7 +18,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
version = '0.9.7'
|
||||
version = '0.9.8'
|
||||
|
||||
from gi.repository import Gtk, Gdk
|
||||
import pyalpm
|
||||
|
@ -30,6 +30,7 @@ import fnmatch
|
||||
import dbus
|
||||
from dbus.mainloop.glib import DBusGMainLoop
|
||||
import signal
|
||||
import re
|
||||
|
||||
from pamac import config, common, aur
|
||||
|
||||
@ -51,6 +52,7 @@ build_depends = set()
|
||||
handle = None
|
||||
syncdbs = None
|
||||
localdb = None
|
||||
colors_regexp = re.compile('\\033\[(\d;)?\d*m')
|
||||
|
||||
# i18n
|
||||
import gettext
|
||||
@ -492,6 +494,7 @@ def check_finished_build(data):
|
||||
signal.setitimer(signal.ITIMER_REAL, 0.05) # 50 ms timeout
|
||||
try:
|
||||
line = build_proc.stdout.readline().decode(encoding='UTF-8')
|
||||
line = re.sub(colors_regexp, '', line)
|
||||
#print(line.rstrip('\n'))
|
||||
progress_buffer.insert_at_cursor(line)
|
||||
except Exception:
|
||||
|
Loading…
Reference in New Issue
Block a user