summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Finney <seanius@debian.org>2009-09-30 00:15:21 +0200
committerSean Finney <seanius@debian.org>2009-09-30 00:15:21 +0200
commitc9ece47c49bb47a94603824ec709ba44a15ff07a (patch)
treea07963697fe76e9329f4e13cb9ff1ce4f4920518
parent7bacd4e7b2f521be3d2bf6494547c60ddf2426b3 (diff)
downloadpatch-tracker-c9ece47c49bb47a94603824ec709ba44a15ff07a.tar.gz
Revert "oops, the length should be two not one"
This reverts commit 7bacd4e7b2f521be3d2bf6494547c60ddf2426b3. actually, it should be one.
-rwxr-xr-xpatchtracker/ReqHandler.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/patchtracker/ReqHandler.py b/patchtracker/ReqHandler.py
index aedd049..c928bb6 100755
--- a/patchtracker/ReqHandler.py
+++ b/patchtracker/ReqHandler.py
@@ -171,8 +171,7 @@ class CmdHandler:
cacheable = True
elif cmdarg == "package":
self.cmd = PackageCmd(args[1:])
- # if it's in the form /package/<pkg>/<vers> it's cacheable
- if len(args[1:]) > 2:
+ if len(args[1:]) > 1:
cacheable = True
elif cmdarg == "index":
self.cmd = IndexCmd(args[1:])