Skip to content

Commit

Permalink
Merge pull request #222 from Obihoernchen/rhel8
Browse files Browse the repository at this point in the history
Fix #221: RHEL8 compatibility + v0.1.7
  • Loading branch information
cxhong authored Apr 3, 2020
2 parents f5576f6 + 83a86da commit 85ae30c
Show file tree
Hide file tree
Showing 17 changed files with 21 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.2
0.1.7
2 changes: 1 addition & 1 deletion xcat-inventory/cli/xcat-inventory
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python2
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
# -*- coding: utf-8 -*-
#
Expand Down
2 changes: 1 addition & 1 deletion xcat-inventory/tests/shell_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python2
###############################################################################
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################
Expand Down
4 changes: 4 additions & 0 deletions xcat-inventory/xcat-inventory.spec
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ Vendor: IBM Corp.
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
Prefix: /opt/xcat
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root
%if 0%{?rhel} >= 8
Requires: python2-psycopg2 python2-sqlalchemy >= 0.8.0 python2-PyMySQL python2-pyyaml python2-six python2-jinja2 git
%else
Requires: python-psycopg2 python-sqlalchemy >= 0.8.0 MySQL-python PyYAML python-six python-jinja2 git
%endif

%ifos linux
BuildArch: noarch
Expand Down
4 changes: 2 additions & 2 deletions xcat-inventory/xcclient/inventory/backend.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/usr/bin/python
#!/usr/bin/python2
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
from __future__ import print_function
import configparser
import os
import shutil
import re
import pickle
import hashlib

from six.moves import configparser
from .exceptions import *
from . import manager
from . import utils
Expand Down
2 changes: 1 addition & 1 deletion xcat-inventory/xcclient/inventory/dbfactory.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python2
from __future__ import print_function
import sys

Expand Down
2 changes: 1 addition & 1 deletion xcat-inventory/xcclient/inventory/dbobject.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python2

import sys
from copy import *
Expand Down
2 changes: 1 addition & 1 deletion xcat-inventory/xcclient/inventory/dbsession.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python2
###############################################################################
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################
Expand Down
2 changes: 1 addition & 1 deletion xcat-inventory/xcclient/inventory/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python2
###############################################################################
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################
Expand Down
2 changes: 1 addition & 1 deletion xcat-inventory/xcclient/inventory/inventorydiff.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python2

from __future__ import print_function

Expand Down
2 changes: 1 addition & 1 deletion xcat-inventory/xcclient/inventory/manager.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python2
###############################################################################
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################
Expand Down
2 changes: 1 addition & 1 deletion xcat-inventory/xcclient/inventory/shell.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python2
###############################################################################
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################
Expand Down
2 changes: 1 addition & 1 deletion xcat-inventory/xcclient/inventory/structurediff.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python2

from __future__ import print_function
import deepdiff
Expand Down
2 changes: 1 addition & 1 deletion xcat-inventory/xcclient/inventory/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python2
###############################################################################
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################
Expand Down
2 changes: 1 addition & 1 deletion xcat-inventory/xcclient/inventory/vutil.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python2
###############################################################################
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################
Expand Down
2 changes: 1 addition & 1 deletion xcat-inventory/xcclient/inventory/xcatobj.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python2
###############################################################################
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################
Expand Down
2 changes: 1 addition & 1 deletion xcat-inventory/xcclient/shell.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python2
###############################################################################
# IBM(c) 2018 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################
Expand Down

0 comments on commit 85ae30c

Please sign in to comment.