diff --git a/pamac-daemon.py b/pamac-daemon.py index c7286ef..df5dc80 100755 --- a/pamac-daemon.py +++ b/pamac-daemon.py @@ -1,6 +1,23 @@ #! /usr/bin/python3 # -*- coding:utf-8 -*- +# pamac - A Python implementation of alpm +# Copyright (C) 2013 Guillaume Benoit +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + import dbus import dbus.service from dbus.mainloop.glib import DBusGMainLoop diff --git a/pamac-install.py b/pamac-install.py index 1d2baee..405b18e 100755 --- a/pamac-install.py +++ b/pamac-install.py @@ -1,6 +1,23 @@ #! /usr/bin/python3 # -*- coding:utf-8 -*- +# pamac - A Python implementation of alpm +# Copyright (C) 2013 Guillaume Benoit +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + from gi.repository import Gtk from sys import argv import dbus diff --git a/pamac-manager.py b/pamac-manager.py index d618078..bcccd52 100755 --- a/pamac-manager.py +++ b/pamac-manager.py @@ -1,6 +1,23 @@ #! /usr/bin/python3 # -*- coding:utf-8 -*- +# pamac - A Python implementation of alpm +# Copyright (C) 2013 Guillaume Benoit +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# 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.3' from gi.repository import Gtk, Gdk diff --git a/pamac-refresh.py b/pamac-refresh.py index d1759c0..b1b3c4c 100755 --- a/pamac-refresh.py +++ b/pamac-refresh.py @@ -1,6 +1,23 @@ #! /usr/bin/python3 # -*- coding:utf-8 -*- +# pamac - A Python implementation of alpm +# Copyright (C) 2013 Guillaume Benoit +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + from gi.repository import GObject from pamac import common, transaction import dbus diff --git a/pamac-tray.py b/pamac-tray.py index 45a7f50..5e757c4 100644 --- a/pamac-tray.py +++ b/pamac-tray.py @@ -1,6 +1,23 @@ #! /usr/bin/python3 # -*- coding:utf-8 -*- +# pamac - A Python implementation of alpm +# Copyright (C) 2013 Guillaume Benoit +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + from gi.repository import Gtk, GObject, Notify from subprocess import Popen import dbus diff --git a/pamac-updater.py b/pamac-updater.py index d857eac..e4fcbad 100644 --- a/pamac-updater.py +++ b/pamac-updater.py @@ -1,6 +1,23 @@ #! /usr/bin/python3 # -*- coding:utf-8 -*- +# pamac - A Python implementation of alpm +# Copyright (C) 2013 Guillaume Benoit +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + from gi.repository import Gtk, Gdk import pyalpm import dbus diff --git a/pamac/aur.py b/pamac/aur.py index c877be9..cf48304 100644 --- a/pamac/aur.py +++ b/pamac/aur.py @@ -1,6 +1,23 @@ #! /usr/bin/python3 # -*- coding:utf-8 -*- +# pamac - A Python implementation of alpm +# Copyright (C) 2013 Guillaume Benoit +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + import os import urllib import Namcap diff --git a/pamac/common.py b/pamac/common.py index 30681cf..2ae6335 100644 --- a/pamac/common.py +++ b/pamac/common.py @@ -1,6 +1,23 @@ #! /usr/bin/python3 # -*- coding:utf-8 -*- +# pamac - A Python implementation of alpm +# Copyright (C) 2013 Guillaume Benoit +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + # i18n import gettext gettext.bindtextdomain('pamac', '/usr/share/locale') diff --git a/pamac/config.py b/pamac/config.py index eaa8312..0cd59a8 100644 --- a/pamac/config.py +++ b/pamac/config.py @@ -1,6 +1,24 @@ #! /usr/bin/python3 # -*- coding:utf-8 -*- +# pamac - A Python implementation of alpm +# Copyright (C) 2011 Rémy Oudompheng +# Copyright (C) 2013 Guillaume Benoit +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + import os import glob import argparse diff --git a/pamac/transaction.py b/pamac/transaction.py index 080eff8..9875a16 100644 --- a/pamac/transaction.py +++ b/pamac/transaction.py @@ -1,6 +1,23 @@ #! /usr/bin/python3 # -*- coding:utf-8 -*- +# pamac - A Python implementation of alpm +# Copyright (C) 2013 Guillaume Benoit +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + import pyalpm from gi.repository import Gtk, GObject from time import sleep @@ -456,6 +473,7 @@ def check_finished_build(data): path = data[0] pkg = data[1] if build_proc.poll() is None: + print('pulse') progress_bar.pulse() while Gtk.events_pending(): Gtk.main_iteration() @@ -608,7 +626,7 @@ def build_next(): progress_expander.set_expanded(True) ProgressWindow.show() build_proc = subprocess.Popen(["makepkg", "-cf"], cwd = path, stdout = subprocess.PIPE, stderr=subprocess.STDOUT) - GObject.io_add_watch(build_proc.stdout, GObject.IO_IN, write_to_buffer) + #GObject.io_add_watch(build_proc.stdout, GObject.IO_IN, write_to_buffer) while Gtk.events_pending(): Gtk.main_iteration() GObject.timeout_add(500, check_finished_build, (path, pkg))