From f56c71ec0957cb44c865b0dadbc1db09c7ceffa7 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Mon, 2 Sep 2013 15:03:09 +0800 Subject: [PATCH] ignore 'state' argument when removing --- archrepo2/repomon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/archrepo2/repomon.py b/archrepo2/repomon.py index 22240d9..1d97072 100755 --- a/archrepo2/repomon.py +++ b/archrepo2/repomon.py @@ -383,7 +383,8 @@ class EventHandler(pyinotify.ProcessEvent): logger.debug('deleting entry for not-in-database package: %s', act.path) self._db.execute('delete from pkginfo where filename = ? and pkgrepo = ?', (act.path, self.name)) return - def callback(): + def callback(state=any): + '''``state`` is not used''' self._db.execute('delete from pkginfo where filename = ? and pkgrepo = ?', (act.path, self.name)) act.callback = callback