diff options
author | Priit Laes <plaes@plaes.org> | 2010-08-03 12:46:24 +0300 |
---|---|---|
committer | Priit Laes <plaes@plaes.org> | 2010-08-03 12:46:24 +0300 |
commit | 48c53d002c7d3501a4c3eda16c4554bf68012d64 (patch) | |
tree | aa9d43485e217603dc99b10e9882f2d77d5c9770 /utils | |
parent | Port webapp to new model layout (diff) | |
download | gsoc2010-grumpy-48c53d002c7d3501a4c3eda16c4554bf68012d64.tar.gz gsoc2010-grumpy-48c53d002c7d3501a4c3eda16c4554bf68012d64.tar.bz2 gsoc2010-grumpy-48c53d002c7d3501a4c3eda16c4554bf68012d64.zip |
Implement package removal
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/grumpy_sync.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/grumpy_sync.py b/utils/grumpy_sync.py index 6a1d826..813b6bc 100755 --- a/utils/grumpy_sync.py +++ b/utils/grumpy_sync.py @@ -168,8 +168,7 @@ def main(path): for pkg in [i for i in old if i not in new]: # Handle package deletion print "DEBUG: package has been removed:", pkg - raise NotImplementedError - package = Package.query.filter_by(cat=cat).filter_by(pkg=pkg).one() + package = Package.query.filter_by(category=c, pkg=pkg).one() db.session.delete(package) db.session.commit() for pkg in new: |