Commit a92d463b authored by Eric S. Raymond's avatar Eric S. Raymond

Don't barf on no preferred type.

parent 38ee890b
......@@ -8154,8 +8154,12 @@ def do_sourcetype(self, line):
if not self.chosen():
complain(b"no repo has been chosen.")
repo = self.chosen()
if not line:
if self.chosen().vcs:
print("%s: %s" % (,
print("%s: no preferred type." %
for repotype in vcstypes + extractors:
if line.lower() ==
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment