14
0
forked from pool/python-parted
Files
python-parted/pyparted-3.10.patch
Matej Cepl d280d98c4c - Update to 3.13.0:
- Help the _ped module garbage collection in the test suite
  - Use 'return NULL' rather than 'return (PyObject *) NULL' in
    pydisk.c
  - Use Py_VISIT() in *_traverse() functions
  - Free allocated memory for temporary string buffers
  - Use Py_RETURN_NONE through the _ped module code
  - Coding style updates for the C code.
  - Some minor cleanups for the test case code
  - Remove DeprecationWarning in py_ped_constraint_duplicate()
  - Drop remaining Python 2.x handling from the Makefile drop six
  - Reformat all Python source code using Python black
  - Replace outdated Red Hat sample GPLv2+ boilerplates
  - Add support for loongarch
  - Add support for no_automount partition flag
  - Add new disk types - disk uuid and partition uuid
  - Fix start sector for test partition
  - Add example for viewing and changing GPT partition type UUID
  - Accept device path via argv for partition dump example
  - Add type ID / UUID to partition dump example
  - Map partition type ID / UUID accessors to Partition class
  - Bind low level APIs for type ID and UUID accessors
  - Add support for new libparted disk type features in
    parted-3.5
- Remove unnecessary patches:
  - more-features-exposed.patch
  - python-parted-featurestest.patch
  - python-parted-no-six.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-parted?expand=0&rev=19
2024-03-16 18:04:00 +00:00

16 lines
445 B
Diff

---
src/parted/disk.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
--- a/src/parted/disk.py
+++ b/src/parted/disk.py
@@ -474,4 +474,7 @@ while __readFlags:
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))