summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Finney <seanius@debian.org>2009-09-30 00:01:05 +0200
committerSean Finney <seanius@debian.org>2009-09-30 00:01:05 +0200
commitbbc670b53d7c2212cb8fb96e6b56894ac5a70030 (patch)
treea07963697fe76e9329f4e13cb9ff1ce4f4920518
parent8042c4ec1e58d4357b6bc7d23cdf83c46a4c17e3 (diff)
downloadpatch-tracker-bbc670b53d7c2212cb8fb96e6b56894ac5a70030.tar.gz
when no version is specified, do not cache PackageCmd
-rwxr-xr-xpatchtracker/ReqHandler.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/patchtracker/ReqHandler.py b/patchtracker/ReqHandler.py
index 59e0f53..c928bb6 100755
--- a/patchtracker/ReqHandler.py
+++ b/patchtracker/ReqHandler.py
@@ -171,7 +171,8 @@ class CmdHandler:
cacheable = True
elif cmdarg == "package":
self.cmd = PackageCmd(args[1:])
- cacheable = True
+ if len(args[1:]) > 1:
+ cacheable = True
elif cmdarg == "index":
self.cmd = IndexCmd(args[1:])
elif cmdarg == "jump":