Aurélien Gâteau
b3ba56a829
Indeed CMake, a list is not a directory...
...
After testing a Python module, the build was broken because the test
created a __pycache__ dir, which CMake tried to install as a file because:
a) `if(IS_DIRECTORY foo)` requires a full path to work
b) For CMake, `IS_DIRECTORY(foo)` is not the same as `IS_DIRECTORY foo`
c) CMake is a pain sometimes
2014-07-24 10:14:42 +02:00
Aurélien Gâteau
f2ab67b28b
Create bootLoader.installPath in GlobalStorage
2014-07-23 18:16:55 +02:00
Aurélien Gâteau
06a13637b6
Store current boot loader install path in PartitionCoreModule
2014-07-23 18:15:46 +02:00
Aurélien Gâteau
ab4604258c
Rework boot loader combo box
...
List MBR of all devices
Does not loose its selection when updated
2014-07-23 18:14:27 +02:00
Aurélien Gâteau
c9c1917997
log--
2014-07-23 15:05:01 +02:00
Aurélien Gâteau
a39384eda7
Simplify
2014-07-23 15:04:40 +02:00
Aurélien Gâteau
484d7c4d15
Update partition path after partition has been created
...
Fixes #56
2014-07-23 14:34:06 +02:00
Aurélien Gâteau
7108718104
Bring back partition and mount modules
2014-07-23 14:33:08 +02:00
Teo Mrnjavac
da83ecfb13
libcalamares.job is of type libcalamares.Job
2014-07-23 13:02:42 +02:00
Teo Mrnjavac
ef28b7f2c1
Add job.setprogress to testmodule.py.
2014-07-23 13:01:30 +02:00
Teo Mrnjavac
78de11a412
Emit job progress from Python jobs.
2014-07-23 12:54:53 +02:00
Aurélien Gâteau
89fd6a950b
Add support for per-job progress
2014-07-23 12:04:27 +02:00
Aurélien Gâteau
e9da5cb6cb
Change signature of JobQueue::progress, add finished() signal
...
Now uses a qreal for progress instead of current and total
Also added a finished() signal because determining whether the queue is
finished should not be done by comparing a qreal with 1.0 as this is not
precise.
2014-07-23 10:58:08 +02:00
Teo Mrnjavac
2636a1273f
Add job.setprogress to Python API.
2014-07-22 18:05:58 +02:00
Teo Mrnjavac
c6c2c67560
Rewrite Python error handling to show meaningful messages.
2014-07-22 17:48:56 +02:00
Aurélien Gâteau
0234415976
Add "mount" module
2014-07-22 17:38:36 +02:00
Aurélien Gâteau
c8129898fc
Introduce FillGlobalStorageJob
2014-07-22 17:38:36 +02:00
Aurélien Gâteau
7763587c01
Move PartitionIterator to its own file
2014-07-22 17:38:36 +02:00
Teo Mrnjavac
ed0fd6d207
Merge pull request #54 from calamares/wip/job-order
...
Queue module jobs in the order they are listed in the "install" section of settings.conf
2014-07-22 17:06:19 +02:00
Aurélien Gâteau
b5b72855c3
Queue module jobs in the order they are listed in the "install" section of settings.conf
2014-07-22 16:54:34 +02:00
Teo Mrnjavac
533cba6437
[testmodule.py] File with fake global_storage contents for testing.
2014-07-22 14:22:15 +02:00
Teo Mrnjavac
4881684e18
[testmodule.py] Simulate global storage contents from a YAML file.
2014-07-22 14:22:15 +02:00
Aurélien Gâteau
1b64917385
Use findPartitionByMountPoint in updateHasRootMountPoint
2014-07-22 10:50:16 +02:00
Aurélien Gâteau
a335c1cc04
Coding style fixes
2014-07-22 10:50:16 +02:00
Aurélien Gâteau
906019facc
Add combo box to pick boot loader installation destination
2014-07-22 10:50:16 +02:00
Aurélien Gâteau
3e3329d4f2
Rework PartitionPage appearance, prior addition of boot loader UI
2014-07-22 10:50:16 +02:00
Teo Mrnjavac
81eca92418
Added testmodule.py script to test Python modules.
2014-07-21 18:34:17 +02:00
Teo Mrnjavac
73f03017fd
Spaces, not tabs.
2014-07-21 18:32:10 +02:00
Teo Mrnjavac
aba981e4ce
Add PyCharm files to .gitignore.
2014-07-21 18:31:31 +02:00
Teo Mrnjavac
0753e6ccde
New GlobalStorage map. With Python API support.
2014-07-21 17:09:23 +02:00
Aurélien Gâteau
4c88603872
Fix bug with tiny disks and mbr partition tables
2014-07-18 18:37:44 +02:00
Aurélien Gâteau
26f6943f8a
Add support for formatting existing partitions
...
closes #24
2014-07-18 15:49:27 +02:00
Aurélien Gâteau
a5fcb9bcb9
Improve CreatePartitionJob::prettyName
2014-07-18 15:49:27 +02:00
Aurélien Gâteau
d374d8bad8
Introduce PartitionJob
2014-07-18 15:49:27 +02:00
Teo Mrnjavac
4516213b0b
Add some dummy configuration to dummypython, and then show it.
2014-07-18 14:36:30 +02:00
Teo Mrnjavac
d9f4c74537
Add support for config map to Python job API.
...
Rename PythonJobHelper ==> CalamaresPython::Helper.
Add QVariant to boost::python::object conversion functions.
Rename some constants in the libcalamares Python API.
2014-07-18 14:36:30 +02:00
Teo Mrnjavac
2f03dfa43b
CalamaresPrivate ==> CalamaresPython
2014-07-18 14:36:30 +02:00
Aurélien Gâteau
568f2abd0b
Reproduce and fix bug #28
2014-07-18 12:26:12 +02:00
Aurélien Gâteau
99fe98a9cf
Unbreak test. Unfortunately it did not reproduce bug #28
2014-07-18 12:11:42 +02:00
Aurélien Gâteau
7e8c5a980c
Make Runner::run() returns a bool indicating success or failure
2014-07-18 11:27:03 +02:00
Aurélien Gâteau
eebc71257f
Nicer error messages
2014-07-18 11:20:13 +02:00
Aurélien Gâteau
26d0b52342
Unbreak build
2014-07-18 11:20:13 +02:00
Aurélien Gâteau
6f65a4b16c
Add a (failing for now) test for extended partitions
...
This reproduces bug #28
2014-07-18 10:51:54 +02:00
Aurélien Gâteau
43f29b8058
Start working on tests for partition jobs
2014-07-18 10:51:54 +02:00
Teo Mrnjavac
031c405c60
Let's not keep commented out code.
2014-07-18 10:39:43 +02:00
Teo Mrnjavac
e33e9de6f6
Symlink lib/calamares/libcalamares.so to lib/libcalamares.so for Python.
2014-07-17 19:42:16 +02:00
Teo Mrnjavac
4028db2b5c
Install Calamares macros
2014-07-17 19:42:16 +02:00
Teo Mrnjavac
a61a36d99d
We have a Python API for jobmodules!
...
Created a Boost.Python module interface in libcalamares.
Added a PythonJob wrapper and exposed it in the Python module.
Rename target calamareslib ==> calamares so in Python it's libcalamares.
Python-related classes in libcalamares that aren't exported as C++
symbols are now in a CalamaresPrivate namespace.
Import the libcalamares python module into every Python script before
running it.
Added Python error handling to PythonJobHelper.
Added some more testing code to dummypython module.
2014-07-17 19:42:16 +02:00
Teo Mrnjavac
c13179fdf0
Add debugMode bool to Calamares::Settings.
2014-07-17 19:42:16 +02:00
Teo Mrnjavac
6559197c4b
Expose some more version constants in CalamaresVersion.h
2014-07-17 19:42:16 +02:00