| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a cleanup for the po files. xgettext displays the following
messages for some Python files:
warning: 'msgid' format string with unnamed arguments cannot be properly localized:
The translator cannot reorder the arguments.
Please consider using a format string with named arguments,
and a mapping instead of a tuple for the arguments.
This patch modifies the reported format strings to use named parameters
per the warning message. We were already using these style format
strings in users.py and possibly other files. Basically when there is
more than one parameter in the format string, we should use a hash table
with named parameters.
|
|
|
|
|
|
|
| |
Immutable leaf devices could prevent certain dependent devices from ever
becoming leaf devices. We avoid this problem by explicitly marking all
deps of an immutable leaf device as immutable at the same time we mark
the leaf immutable.
|
| |
|
|
|
|
|
|
|
|
| |
This helps us to avoid parted's renumbering nonsense.
This patch also streamlines clearPartitions so that it removes the
partitions inside the loop instead of building a list and iterating over
it separately to remove the partitions.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
- Change minsize/maxsize to minSize/maxSize since that's the
convention elsewhere throughout the code.
- Redirect output from all external utilities to tty5, not
/dev/null.
- Don't waste calls to basename for debug log statements,
especially when the device can be None.
- Add lots of missing imports.
- Fix lots of remnants of previous code usage.
|
|
|
|
| |
Consistency makes maintenance easier.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Removed the parted.getPartitionByName() function. There is now
a method on parted.Disk called getPartitionByPath() which provides
the same functionality, but only works on a single Disk.
|
|
|
|
|
| |
The property name for Device objects on a Disk or Geometry is
'device', not 'dev'.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1) Iterate over partitions with a for loop over
disk.partitions.values() rather than calling next_partition()
2) Call getFlag() rather than get_flag()
3) Call setFlag() to enable a flag, call unsetFlag() to disable
a flag.
4) Reference the active property rather than calling the
is_active() method.
And other fixes.
|
|
|
|
|
|
|
| |
In the old pyparted, this flag was marked with all sorts of warnings about
how it would go away once certain constants were supported. We now support
all the constants libparted exposes, so we don't need to keep ancient hacks
around anymore.
|
|
|
|
| |
Now provided by pyparted as parted.getPartitionByName()
|
|
|
|
| |
Now provided by parted.Partition.getDeviceNodeName()
|
|
|
|
|
| |
The parted.Device object now offers functions to translate
between cylinders and sectors.
|
|
|
|
| |
* po/sk.po: Typo fix.
|
| |
|
|
|
|
|
|
|
| |
Shorten 'Red Hat Author(s)' to just 'Author(s)'. Perhaps eventually
we'll get an AUTHORS file and will just remove author names from the
individual files. Also fixed a type in scripts/dumphdrlist.py where
Author was listed twice.
|
|
|
|
|
|
| |
Updated all *.py files to have a uniform GPL boilerplate. Expanded copyright
year ranges and listed authors (if they were in the comment section) under
the Red Hat Author(s) section.
|
|
|
|
|
| |
* partedUtils.py (DiskSet.openDevices): Fix double space (#246703)
* partIntfHelpers.py (queryNoFormatPreExisting): Likewise.
|
|
|
|
|
| |
* partIntfHelpers.py (mustHaveSelectedDrive): Kill useless
preposition at the end of the sentence.
|
| |
|
|
|
|
|
|
| |
* partIntfHelpers.py (sanityCheckVolumeGroupName,
sanityCheckLogicalVolumeName): Disallow more device names that
will break LVM installs (#20438)
|
| |
|
|
|
|
|
| |
This still needs to be tested, once we get through with all the
image-making problems.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
* textw/partition_text.py (AutoPartitionWindow.__call__): Check
for a drive being selected (#124296)
* partIntfHelpers.py (mustHaveSelectedDrive): Add UI helper for
selected drives error.
* iw/partition_gui.py (AutoPartitionWindow.getNext): Use helper.
|
|
|
|
|
| |
* partIntfHelpers.py (sanityCheckVolumeGroupName): Blacklist root
as a VG name (#142785)
|
|
|
|
|
|
|
|
|
| |
* partRequests.py (RequestSpec.sanityCheckRequest): Call
sanityCheckMountPoint with new option
* partIntfHelpers.py (sanityCheckMountPoint): Don't allow
formatting unless they specify a mountpoint on pre-existing
partitions (#134865)
|
| |
|
| |
|
| |
|
|
|
|
| |
fairly large merge, but all fairly obvious stuff. will test in a tree tomorrow
|
| |
|
| |
|
|
|
|
| |
smart pants type things like "/...." or "/." now but you are an idiot if you do that)
|
|
|
|
| |
and cleanups in here too
|
|
|
|
|
| |
will be tagged after-taroon-merge after. taroon at this point is tagged
taroon-merge-point for where to base merges from in the future
|
| |
|
| |
|
| |
|
| |
|
| |
|