From 8fbde103c192ed3e18c68f7f89e296b455eb3dd7 Mon Sep 17 00:00:00 2001 From: Papoteur Date: Fri, 26 Jan 2024 16:07:23 +0100 Subject: Say that --last option of cancel is not yet working --- MgaRepo/commands/cancel.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/MgaRepo/commands/cancel.py b/MgaRepo/commands/cancel.py index 899f0d5..83e8839 100644 --- a/MgaRepo/commands/cancel.py +++ b/MgaRepo/commands/cancel.py @@ -5,13 +5,7 @@ from MgaRepo.command import * from MgaRepo.rpmutil import get_spec, get_submit_info from MgaRepo.util import get_auth, execcmd, get_helper import urllib.request, urllib.parse, urllib.error -import getopt import sys -import re -import subprocess -import uuid - -import xmlrpc.client HELP = """\ Usage: mgarepo cancel [OPTIONS] [PACKAGE_SUBMISSION] @@ -35,6 +29,9 @@ def parse_options(): return opts def cancel(url, last = False, submithost=None): + if last: + print("This option is not yet working") + return if submithost is None: submithost = config.get("submit", "host") if submithost is None: -- cgit v1.2.1