python-sushy/SOURCES/nopbr.patch

22 lines
710 B
Diff
Raw Normal View History

2019-08-06 19:10:20 +00:00
diff -up sushy-1.3.1/sushy/__init__.py.orig sushy-1.3.1/sushy/__init__.py
--- sushy-1.3.1/sushy/__init__.py.orig 2018-02-05 22:36:53.000000000 +0100
+++ sushy-1.3.1/sushy/__init__.py 2018-06-25 16:32:27.850096625 +0200
@@ -14,15 +14,14 @@
import logging
-import pbr.version
+#import pbr.version
from sushy.main import Sushy
from sushy.resources.system.constants import * # noqa
from sushy.resources.manager.constants import * # noqa
__all__ = ('Sushy',)
-__version__ = pbr.version.VersionInfo(
- 'sushy').version_string()
+__version__ = "@@REDHATVERSION@@"
# Set the default handler to avoid "No handler found" warnings. See:
# https://docs.python.org/3/howto/logging.html#library-config