aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'utils/grumpy_sync.py')
-rwxr-xr-xutils/grumpy_sync.py4
1 files changed, 4 insertions, 0 deletions
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()