Teo Mrnjavac
78a3f1ce57
Merge pull request #81 from calamares/config
...
Configuration refactor
2014-08-06 17:42:35 +02:00
Aurélien Gâteau
b5c3928609
unsquashfs: Do not ignore rsync failures
2014-08-06 15:11:10 +02:00
Teo Mrnjavac
8f10c21e5b
Big configuration overhaul.
...
Module descriptors are now module.desc, no configuration allowed inside.
Module config files are <modulename>.conf, installed in
share/calamares/modules.
settings.conf is read from /etc/calamares, then share/calamares, and if
running with --debug also in the current dir.
Module config files are read from /etc/calamares/modules, then
share/calamares/modules, and if running with --debug also in
src/modules/<modulename> relative to the current dir.
2014-08-06 11:54:45 +02:00
Aurélien Gâteau
7680578b61
Simplify unsquash code
...
- Merged UnpackEntry and UnpackStatusEntry. Created a entry_for_source dict.
- Removed dead code (update_copy_progress)
2014-08-01 11:59:44 +02:00
Aurélien Gâteau
edc70c596b
unsquashfs: Fix installation dir
2014-08-01 11:46:29 +02:00
Aurélien Gâteau
8867f6bc67
Fix progress reporting
2014-07-30 15:35:51 +02:00
Aurélien Gâteau
f371ffa696
Iterate on values, not on keys
2014-07-30 15:13:34 +02:00
Aurélien Gâteau
7a0fb52c83
Damn, forgot named tuples cannot be updated. Use a class instead
2014-07-30 15:10:23 +02:00
Aurélien Gâteau
9c27add968
Use os.path.join
2014-07-30 15:06:59 +02:00
Aurélien Gâteau
22299dc585
No need for UnpackEntry.source_dir
2014-07-30 15:06:39 +02:00
Aurélien Gâteau
638a5c021c
More precise error handling
2014-07-30 15:05:44 +02:00
Aurélien Gâteau
adda405f83
Do not use os.path.join with entry["destination"]
...
if it starts with a "/" then `destination` will be equal to entry["destination"]
2014-07-30 15:05:19 +02:00
Aurélien Gâteau
ecb16dcdca
Fix line counting
2014-07-30 15:03:55 +02:00
Aurélien Gâteau
47762d3812
No more need for sourceMountPath
2014-07-30 15:02:55 +02:00
Teo Mrnjavac
4b1975d3e2
PEPify unsquashfs
2014-07-29 15:10:18 +02:00
Teo Mrnjavac
cb53cc41cb
Remove __init__.py from unsquashfs
2014-07-28 18:04:34 +02:00
Teo Mrnjavac
422e78236b
Make fileCopy in unsquashfs a single function
2014-07-28 17:57:53 +02:00
Teo Mrnjavac
b48a66a2e5
Improve readability.
2014-07-28 17:51:35 +02:00
Teo Mrnjavac
e937782a4e
Fix some lousy error handling
2014-07-28 17:46:56 +02:00
Teo Mrnjavac
4fc2efb7fa
Correctly report exit status from Python modules.
2014-07-28 17:40:57 +02:00
Teo Mrnjavac
25d37b57dd
Use named tuples in unsquashfs.
2014-07-28 17:40:57 +02:00
Teo Mrnjavac
1b4e56e97e
Better call to rsync in unsquashfs.
2014-07-28 17:40:57 +02:00
Teo Mrnjavac
c42d021b61
Unthreadify FileCopy in unsquashfs.
2014-07-28 17:40:57 +02:00
Teo Mrnjavac
f44b8eb758
Count the files in the squashfs image without piping to wc -l.
2014-07-28 17:40:57 +02:00
Teo Mrnjavac
cb2dcf7860
Use temp dir for mounting squashfs image.
2014-07-28 17:40:57 +02:00
Teo Mrnjavac
60dda7db49
Begin unsquashfs module, port copy operation from Thus.
2014-07-28 17:40:57 +02:00