Skip to content

Commit

Permalink
OpenSUSE 15.1: Use localstatedir when runstatedir is not available
Browse files Browse the repository at this point in the history
automake package available for OpenSUSE 15.1 does not set runstatedir macro.
So use localstatedir when runstatedir is not available.

Signed-off-by: Aline Manera <aline.manera@gmail.com>
  • Loading branch information
alinefm committed Dec 26, 2019
1 parent bb25486 commit b04c5e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ __release__ = "@kimchirelease@"
READONLY_POOL_TYPE = ['iscsi', 'scsi', 'mpath']

def get_libvirt_path():
return os.path.join("@runstatedir@", 'libvirt')
run_state_dir = "@runstatedir@" if "@runstatedir@" else "@localstatedir@/run"
return os.path.join(run_state_dir, 'libvirt')

def get_kimchi_version():
return "-".join([__version__, __release__])
Expand Down

0 comments on commit b04c5e3

Please sign in to comment.