Skip to content

Commit

Permalink
Fix apt-plugin for subscription-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
m-bucher committed Apr 6, 2020
1 parent a6a8490 commit 54a0288
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions debian-stuff/katello
Expand Up @@ -24,12 +24,12 @@
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.


from __future__ import print_function

import sys
import re
import hashlib

from __future__ import print_function

import requests


Expand All @@ -42,7 +42,7 @@ class pkg_acquire_method:
__eof = False

def __init__(self):
print("100 Capabilities\nVersion: 1.0\nSingle-Instance: true\n\n")
print("100 Capabilities\nVersion: 1.0\nSingle-Instance: true\n")

def __get_next_msg(self):
"""
Expand Down Expand Up @@ -81,16 +81,16 @@ class pkg_acquire_method:
return result

def status(self, **kwargs):
print("102 Status\n%s\n" % self.__dict2msg(kwargs))
print("102 Status\n%s" % self.__dict2msg(kwargs))

def uri_start(self, msg):
print("200 URI Start\n%s\n" % self.__dict2msg(msg))
print("200 URI Start\n%s" % self.__dict2msg(msg))

def uri_done(self, msg):
print("201 URI Done\n%s\n" % self.__dict2msg(msg))
print("201 URI Done\n%s" % self.__dict2msg(msg))

def uri_failure(self, msg):
print("400 URI Failure\n%s\n" % self.__dict2msg(msg))
print("400 URI Failure\n%s" % self.__dict2msg(msg))

def run(self):
"""Loop through requests on stdin"""
Expand Down

0 comments on commit 54a0288

Please sign in to comment.