From 62a084cd933cbbf613d30e3822ad0698f541bb86 Mon Sep 17 00:00:00 2001 From: Priit Laes Date: Tue, 10 Aug 2010 19:10:22 +0300 Subject: Fix corner case in syncer --- utils/grumpy_sync.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/grumpy_sync.py b/utils/grumpy_sync.py index 813b6bc..7457bda 100755 --- a/utils/grumpy_sync.py +++ b/utils/grumpy_sync.py @@ -105,6 +105,10 @@ def main(path): def package_sync(cat, pkg, files, mtime): """Update package information in database.""" + # Bail out early if package has no ebuilds + if len(files) == 0: + return + # Fetch package from database p = Package.query.filter_by(category=cat,pkg=pkg).first() -- cgit v1.2.3-65-gdbad