14
0
forked from pool/python-parted
Files
python-parted/pyparted-3.10.patch
Tomáš Chvátal d7e8562b4a - Add patch to tweak features detected in tests (parted changes
from suse):
  * python-parted-featurestest.patch
- Add patch python-parted-parted-binary.patch to run parted full
  path as user does not see sbin binaries
- Add patch no-last-flag-check.patch from debian
- Add patch python-parted-unittests.patch from ubuntu to fix tests

- Implement singlespec version for python3
- Refresh patch pyparted-3.10.patch to work with python3
- Enable testsuite to validate it somehow

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-parted?expand=0&rev=8
2018-05-24 15:42:35 +00:00

13 lines
593 B
Diff

diff -wruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs ../orig-pyparted-3.10/src/parted/disk.py ./src/parted/disk.py
--- ../orig-pyparted-3.10/src/parted/disk.py 2013-04-09 17:31:40.000000000 +0200
+++ ./src/parted/disk.py 2014-02-09 09:49:31.693576602 +0100
@@ -486,4 +486,7 @@
if not __flag:
__readFlags = False
else:
- diskFlag[__flag] = _ped.disk_flag_get_name(__flag)
+ try:
+ diskFlag[__flag] = _ped.disk_flag_get_name(__flag)
+ except:
+ print("Bad disk flag: {}".format(__flag))