From 4fa29017204d1ea40fd8a977badbce892a7346da Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Jan 15 2019 15:51:19 +0000 Subject: cleanup unused var whitespace missing import --- diff --git a/koji/util.py b/koji/util.py index 25d7d79..495cea4 100644 --- a/koji/util.py +++ b/koji/util.py @@ -517,13 +517,12 @@ def check_sigmd5(filename): f.seek(o) data = f.read(8) indexcount, storesize = struct.unpack('!II', data) - sig_o = 0 for idx in range(indexcount): data = f.read(16) tag, data_type, offset, count = struct.unpack('!IIII', data) - if tag == 1004: # SIGMD5 - assert(data_type == 7) # binary data - assert(count == 16) # 16 bytes of md5 + if tag == 1004: # SIGMD5 + assert(data_type == 7) # binary data + assert(count == 16) # 16 bytes of md5 break # seek to location of md5 f.seek(o + 8 + indexcount * 16 + offset) diff --git a/vm/kojivmd b/vm/kojivmd index 968aff6..5aa2587 100755 --- a/vm/kojivmd +++ b/vm/kojivmd @@ -38,6 +38,7 @@ import subprocess import libvirt import libxml2 import random +import rpm import socket import six.moves.xmlrpc_server import threading