From 359ec109dd93f23649d123f5d7ad655927c7a958 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Tue, 12 Feb 2013 20:44:24 +0800 Subject: [PATCH 1/2] using blob for picked data --- repomon.py | 2 +- scripts/upgrade_from_0.1.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/repomon.py b/repomon.py index d5743bc..6463c76 100755 --- a/repomon.py +++ b/repomon.py @@ -206,7 +206,7 @@ class EventHandler(pyinotify.ProcessEvent): owner text, mtime int, state int, - info text)''') + info blob)''') dirs = [os.path.join(base, x) for x in ('any', 'i686', 'x86_64')] self.files = files = set() diff --git a/scripts/upgrade_from_0.1.py b/scripts/upgrade_from_0.1.py index 666fe80..d18347a 100755 --- a/scripts/upgrade_from_0.1.py +++ b/scripts/upgrade_from_0.1.py @@ -27,7 +27,7 @@ def main(conffile): assert getver(db) == '0.1', 'wrong database version' input('Please stop the service and then press Enter.') try: - db.execute('alter table pkginfo add info text') + db.execute('alter table pkginfo add info blob') except sqlite3.OperationalError: # the column is already there pass From 5f6b8786f88cd5aeb3e97f96ae9b0ecd77d6ef5e Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Sat, 2 Mar 2013 20:31:52 +0800 Subject: [PATCH 2/2] =?UTF-8?q?touch=20any=20=E4=B8=AD=E7=9A=84=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=97=B6=EF=BC=8C=E5=85=B6=E5=AE=83=E4=BB=93=E5=BA=93?= =?UTF-8?q?=E4=B9=9F=E5=BA=94=E5=BD=93=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repomon.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/repomon.py b/repomon.py index 6463c76..bca258f 100755 --- a/repomon.py +++ b/repomon.py @@ -289,9 +289,7 @@ class EventHandler(pyinotify.ProcessEvent): os.symlink(os.path.join('..', arch, file), newpath) except FileExistsError: pass - else: - # XXX: this should be removed as soon as symlinks are supported - self._real_dispatch(newd, ActionInfo(newpath, action)) + self._real_dispatch(newd, ActionInfo(newpath, action)) else: try: os.unlink(newpath)