summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger (asterix) <m.mairkeimberger@gmail.com>2016-07-13 20:39:44 +0200
committerPatrice Clement <monsieurp@gentoo.org>2016-07-14 18:06:39 +0200
commit9a078b922e5326fe808f758a2f0eba8b20ad8d89 (patch)
tree038ba32e5f3e4894d260763a2ae1cacb2a54fa73 /app-portage
parentapp-portage/elogv: remove unused patches (diff)
downloadgentoo-9a078b922e5326fe808f758a2f0eba8b20ad8d89.tar.gz
gentoo-9a078b922e5326fe808f758a2f0eba8b20ad8d89.tar.bz2
gentoo-9a078b922e5326fe808f758a2f0eba8b20ad8d89.zip
app-portage/elogviewer: remove unused patches
Closes: https://github.com/gentoo/gentoo/pull/1883 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'app-portage')
-rw-r--r--app-portage/elogviewer/files/elogviewer-0.5.2-clear_warning.patch49
-rw-r--r--app-portage/elogviewer/files/elogviewer-0.5.2-timesort.patch70
2 files changed, 0 insertions, 119 deletions
diff --git a/app-portage/elogviewer/files/elogviewer-0.5.2-clear_warning.patch b/app-portage/elogviewer/files/elogviewer-0.5.2-clear_warning.patch
deleted file mode 100644
index 3f9ac836fb06..000000000000
--- a/app-portage/elogviewer/files/elogviewer-0.5.2-clear_warning.patch
+++ /dev/null
@@ -1,49 +0,0 @@
---- elogviewer.orig 2008-04-24 17:41:01.000000000 -0400
-+++ elogviewer 2008-04-24 18:59:09.000000000 -0400
-@@ -47,6 +47,10 @@
- Christian Faulhammer (V-Li) has written the man page.
- '''
-
-+_clearwarn = '''
-+<big>WARNING:</big> Are you sure you want to clear all entries? This will permanently delete all elog files!
-+'''
-+
-
- # Redirect messages to stderr
- import sys
-@@ -435,6 +439,23 @@
- self.destroy()
-
-
-+class ClearPrompt(gtk.MessageDialog):
-+
-+ def __init__(self):
-+ gtk.MessageDialog.__init__(self,
-+ parent=None,
-+ #flasgs=0,
-+ type=gtk.MESSAGE_WARNING,
-+ buttons=gtk.BUTTONS_YES_NO,
-+ message_format=None)
-+ self.set_markup ( _clearwarn )
-+
-+ def do_prompt(self):
-+ response = self.run()
-+ self.destroy()
-+ return response
-+
-+
- class ActionGroup(gtk.ActionGroup):
-
- def __init__(self, activate_action):
-@@ -641,7 +662,10 @@
- if action == "Delete":
- self.delete()
- if action == "Clear":
-- self.clear()
-+ cp = ClearPrompt()
-+ confirmation = cp.do_prompt()
-+ if confirmation == gtk.RESPONSE_YES:
-+ self.clear()
- if action == "Refresh":
- self.refresh()
- if action == "Quit":
diff --git a/app-portage/elogviewer/files/elogviewer-0.5.2-timesort.patch b/app-portage/elogviewer/files/elogviewer-0.5.2-timesort.patch
deleted file mode 100644
index e3223bf84e4d..000000000000
--- a/app-portage/elogviewer/files/elogviewer-0.5.2-timesort.patch
+++ /dev/null
@@ -1,70 +0,0 @@
---- elogviewer 2007-09-20 10:47:05.000000000 +0300
-+++ elogviewer 2008-01-23 23:50:12.000000000 +0200
-@@ -123,26 +123,29 @@
- #otime = '%Y-%m-%d %H:%M:%S'
- # see modules time and locale
- otime = '%x %X'
-+ vtime = '%Y-%m-%d %H:%M:%S'
-
- (c, p, t) = filename.split(':')
- t = time.strptime(t, itime)
-+ st = time.strftime(vtime, t)
- t = time.strftime(otime, t)
-
- self.category = c
- self.package = p
-- self.timestamp = t
-+ self.timestamp = st
-+ self.timesort = t
- self.filename = filename
-
-
- from glob import glob
- from gobject import TYPE_STRING
--( CATEGORY, PACKAGE, TIMESTAMP, FILENAME ) = range(4)
-+( CATEGORY, PACKAGE, TIMESTAMP, TIMESORT, FILENAME ) = range(5)
- class TreeStore(gtk.TreeStore):
-
- def __init__(self):
-
- gtk.TreeStore.__init__( self,
-- TYPE_STRING, TYPE_STRING, TYPE_STRING, TYPE_STRING )
-+ TYPE_STRING, TYPE_STRING, TYPE_STRING, TYPE_STRING, TYPE_STRING )
-
- def get_filename(self, iter):
- if not iter:
-@@ -169,14 +172,14 @@
- iter = self.insert_before(None, None)
- self.set_value(iter, 0, e.category)
- self.append(iter, (None,
-- e.package, e.timestamp, e.filename))
-+ e.package, e.timestamp, e.timesort, e.filename))
-
- def populate_flat(self):
- self.clear()
- iter = self.get_iter_first()
- for e in [Elog(filename) for filename in glob('*:*:*.log')]:
- self.append(iter,
-- (e.category, e.package, e.timestamp, e.filename))
-+ (e.category, e.package, e.timestamp, e.timesort, e.filename))
-
-
- class TreeViewColumn(gtk.TreeViewColumn):
-@@ -184,7 +187,7 @@
- def __init__(self, title=None, *args, **kargs):
- gtk.TreeViewColumn.__init__(self, title, *args, **kargs)
-
-- self.set_sort_column_id(TIMESTAMP)
-+ self.set_sort_column_id(TIMESORT)
-
-
- class TreeView(gtk.TreeView):
-@@ -197,7 +200,7 @@
- self.append_column(TreeViewColumn(
- 'Package', gtk.CellRendererText(), text=PACKAGE))
- self.append_column(TreeViewColumn(
-- 'Time', gtk.CellRendererText(), text=TIMESTAMP))
-+ 'Time', gtk.CellRendererText(), text=TIMESORT))
-
- self.set_enable_search(True)
- self.set_search_column(PACKAGE)