aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2024-01-26 16:07:23 +0100
committerPapoteur <papoteur@mageia.org>2024-01-26 16:07:23 +0100
commit8fbde103c192ed3e18c68f7f89e296b455eb3dd7 (patch)
tree644d02c963e235e800516839b6cb33aab35ecc5b
parent91d2f2af45b29b9537e4e0c93b69bd17bb1cc772 (diff)
downloadmgarepo-topic/cancel.tar
mgarepo-topic/cancel.tar.gz
mgarepo-topic/cancel.tar.bz2
mgarepo-topic/cancel.tar.xz
mgarepo-topic/cancel.zip
Say that --last option of cancel is not yet workingtopic/cancel
-rw-r--r--MgaRepo/commands/cancel.py9
1 files 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: