diff options
author | Jeremy Katz <katzj@redhat.com> | 2004-08-17 21:51:09 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2004-08-17 21:51:09 +0000 |
commit | 6fe6ae3cd73210e7cbc027b349df59871e0f2033 (patch) | |
tree | 883ad5ceed7ec9114cf197a16c7606c23afb9c44 /isys | |
parent | 590d34f16e7c5d454992a7751e6b0d48f1a29603 (diff) | |
download | anaconda-6fe6ae3cd73210e7cbc027b349df59871e0f2033.tar.gz anaconda-6fe6ae3cd73210e7cbc027b349df59871e0f2033.tar.xz anaconda-6fe6ae3cd73210e7cbc027b349df59871e0f2033.zip |
use posix.makedev if available. fixes (#129743)
Diffstat (limited to 'isys')
-rw-r--r-- | isys/isys.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/isys/isys.py b/isys/isys.py index fc28f3ac8..8190359a1 100644 --- a/isys/isys.py +++ b/isys/isys.py @@ -19,6 +19,7 @@ import _isys import string import os import os.path +import posix import sys import kudzu @@ -387,7 +388,10 @@ def makeDevInode(name, fn=None): return path def makedev(major, minor): - return _isys.makedev(major, minor) + if posix.__dict__.has_key("makedev"): + return posix.makedev(major, minor) + else: + return _isys.makedev(major, minor) def mknod(pathname, mode, dev): return _isys.mknod(pathname, mode, dev) |