cur.execute("INSERT INTO liveboot_request(owner_uid, package_list_id)"
" VALUES(%s)", (owner_uid, package_list_id))
-if __name__ == "__main__":
- if len(sys.argv) != 2:
- print("usage: %s deb_package_instance_id")
- sys.exit(1)
-
- deb_pkg_instance_id = int(sys.argv[1])
-
+def add_liveboot_request(deb_pkg_instance_id):
logging.basicConfig()
logger = logging.getLogger()
jenkins_uid = pwd.getpwnam("jenkins").pw_uid
insert_liveboot_request(con, jenkins_uid, def_pkg_list_id)
con.commit()
+ return