aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorPriit Laes <plaes@plaes.org>2010-08-03 12:46:24 +0300
committerPriit Laes <plaes@plaes.org>2010-08-03 12:46:24 +0300
commit48c53d002c7d3501a4c3eda16c4554bf68012d64 (patch)
treeaa9d43485e217603dc99b10e9882f2d77d5c9770 /utils
parentPort webapp to new model layout (diff)
downloadgsoc2010-grumpy-48c53d002c7d3501a4c3eda16c4554bf68012d64.tar.gz
gsoc2010-grumpy-48c53d002c7d3501a4c3eda16c4554bf68012d64.tar.bz2
gsoc2010-grumpy-48c53d002c7d3501a4c3eda16c4554bf68012d64.zip
Implement package removal
Diffstat (limited to 'utils')
-rwxr-xr-xutils/grumpy_sync.py3
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: