|
|
|
@ -126,12 +126,12 @@ class pkg():
|
|
|
|
|
Depends3: python3-pyqt5, parted, util-linux, mtools, python3-dbus, python3-pyudev, p7zip-full, python3-six
|
|
|
|
|
Build-Depends: python3-all
|
|
|
|
|
Section: system
|
|
|
|
|
XS-Python-Version: = 3.5
|
|
|
|
|
XS-Python-Version: = 3
|
|
|
|
|
Debian-Version: 1"""
|
|
|
|
|
|
|
|
|
|
with open("stdeb.cfg", "w") as f:
|
|
|
|
|
f.write(stdcfg)
|
|
|
|
|
if subprocess.call('/usr/bin/python3.5 setup.py --command-packages=stdeb.command bdist_deb', shell=True) == 0 and \
|
|
|
|
|
if subprocess.call('/usr/bin/python3 setup.py --command-packages=stdeb.command bdist_deb', shell=True) == 0 and \
|
|
|
|
|
os.path.exists(os.path.join("deb_dist", "python3-multibootusb_" + self.version + "-1_all.deb")):
|
|
|
|
|
try:
|
|
|
|
|
shutil.copy2(os.path.join("deb_dist", "python3-multibootusb_" + self.version + "-1_all.deb"),
|
|
|
|
@ -159,7 +159,7 @@ class pkg():
|
|
|
|
|
"Requires = " + require)
|
|
|
|
|
with open("setup.cfg", "w") as f:
|
|
|
|
|
f.write(setup_cfg)
|
|
|
|
|
if subprocess.call('/usr/bin/python3.5 setup.py bdist_rpm', shell=True) == 0 and \
|
|
|
|
|
if subprocess.call('/usr/bin/python3 setup.py bdist_rpm', shell=True) == 0 and \
|
|
|
|
|
os.path.exists(os.path.join("dist", "multibootusb-" + self.version + "-1.noarch.rpm")):
|
|
|
|
|
if self.pkg_name == 'suse':
|
|
|
|
|
package = "multibootusb-" + self.version + "-1suse.noarch.rpm"
|
|
|
|
|