sys.stderr.write("Component '%s' not recognised.\n"%(component));
sys.exit(2);
utils.fubar("Component '%s' not recognised."%(component));
type_id=db_access.get_override_type_id(type);
iftype_id==-1:
sys.stderr.write("Type '%s' not recognised. (Valid types are deb, udeb and dsc.)\n"%(type));
sys.exit(2);
utils.fubar("Type '%s' not recognised. (Valid types are deb, udeb and dsc.)\n"%(type));
iftype=="dsc":
q=projectB.query("SELECT o.package, s.section, o.maintainer FROM override o, section s WHERE o.suite = %s AND o.component = %s AND o.type = %s AND o.section = s.id ORDER BY s.section, o.package"%(suite_id,component_id,type_id));
...
...
@@ -222,8 +216,7 @@ def main ():
foriin["list","set"]:
ifCnf["Natalie::Options::%s"%(i)]:
ifaction!=None:
sys.stderr.write("Can not perform more than one action at once.\n");
sys.exit(2);
utils.fubar("Can not perform more than one action at once.");