...
This commit is contained in:
parent
d36368c4df
commit
0ad8314d0b
2
aif.xsd
2
aif.xsd
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
<xs:simpleType name="t_diskdev">
|
<xs:simpleType name="t_diskdev">
|
||||||
<xs:restriction base="xs:string">
|
<xs:restriction base="xs:string">
|
||||||
<xs:pattern value="/dev/([A-Za-z0-9_]+/)?[A-Za-z0-9_]+[0-9]?"/>
|
<xs:pattern value="(/dev/([A-Za-z0-9_]+/)?[A-Za-z0-9_]+[0-9]?|auto)"/>
|
||||||
<xs:whiteSpace value="collapse"/>
|
<xs:whiteSpace value="collapse"/>
|
||||||
</xs:restriction>
|
</xs:restriction>
|
||||||
</xs:simpleType>
|
</xs:simpleType>
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
from . import _common
|
from . import _common
|
||||||
|
|
||||||
BlockDev = _common.BlockDev
|
_BlockDev = _common.BlockDev
|
||||||
|
|
||||||
|
@ -220,3 +220,8 @@ class Disk(object):
|
|||||||
p.is_hiformatted = True
|
p.is_hiformatted = True
|
||||||
self.is_partitioned = True
|
self.is_partitioned = True
|
||||||
return()
|
return()
|
||||||
|
|
||||||
|
class Mount(object):
|
||||||
|
def __init__(self, mount_xml, partobj):
|
||||||
|
self.xml = mount_xml
|
||||||
|
pass
|
||||||
|
@ -1,4 +1,10 @@
|
|||||||
import re
|
import os
|
||||||
|
|
||||||
|
def hasBin(binary_name):
|
||||||
|
paths = []
|
||||||
|
for p in os.environ.get('PATH', '/usr/bin:/bin').split(':'):
|
||||||
|
os.listdir(os.path.realpath(p))
|
||||||
|
|
||||||
|
|
||||||
def xmlBool(xmlobj):
|
def xmlBool(xmlobj):
|
||||||
# https://bugs.launchpad.net/lxml/+bug/1850221
|
# https://bugs.launchpad.net/lxml/+bug/1850221
|
||||||
|
@ -185,3 +185,4 @@
|
|||||||
</post>
|
</post>
|
||||||
</scripts>
|
</scripts>
|
||||||
</aif>
|
</aif>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user