Commit Graph

3488 Commits

Author SHA1 Message Date
correctmost c7aeead7d2
Fix various mypy errors in archinstall/lib/ (#2640)
* Fix various mypy errors in archinstall/lib/

* Additional mypy fixes in archinstall/lib/ to pass CI checks
2024-08-28 05:43:54 +10:00
correctmost 63b4184f70
Fix most of the mypy errors in archinstall/lib/disk/ (#2639) 2024-08-28 05:40:51 +10:00
correctmost 1e7f1194d7
Fix most of the mypy errors in archinstall/tui/ (#2638) 2024-08-28 00:55:53 +10:00
correctmost 7835784be5
Fix most of the mypy errors in archinstall/default_profiles/ (#2636) 2024-08-27 15:07:49 +10:00
Franco Castillo 446aa44007
Update Spanish translation (#2635)
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
2024-08-27 04:20:33 +10:00
Anton Hvornum fe5e7cdbf7
Bumping version to: v2.8.4 (#2633) 2024-08-26 13:03:49 +02:00
Vasiliy Stelmachenok 3fa70722a9
Do not overwrite the contents of mkinitcpio.conf (#2532) 2024-08-26 12:57:45 +02:00
Anton Hvornum 9abd3a82cc
Added error handling for mirrors that time out mid-read (#2632) 2024-08-26 12:50:37 +02:00
summoner001 949337ddf3
Update Hungarian translation (#2630)
After testing Archinstal v2.8.3, I fixed some minor translation and typo mistakes.
Sorry for my mistakes.
This translation is ready to use.
2024-08-26 02:37:48 +10:00
Hugo Carvalho dd5cbc93fa
Update Portuguese translation (#2629) 2024-08-26 02:37:27 +10:00
renovate[bot] a55922cd56
chore(deps): update pre-commit hook pre-commit/mirrors-mypy to v1.11.2 (#2628)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-26 02:36:46 +10:00
Anton Hvornum 1097e5ca17
Bumping version to: v2.8.3 (#2627) 2024-08-25 10:20:32 +02:00
renovate[bot] 211ce2d65b
chore(deps): update dependency mypy to v1.11.2 (#2626)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-25 15:21:01 +10:00
codefiles 179ba3cd9a
Fix load_devices() lsblk (#2565)
* Fix load_devices() lsblk

* Add udev sync before load_devices() lsblk call
2024-08-23 17:22:26 +02:00
Odyssey b9183f4df3
Add Catalan translation (#2623) 2024-08-23 08:29:23 +02:00
codefiles d2acdb4977
Refactor create_btrfs_volumes() (#2621) 2024-08-22 16:41:10 +10:00
Anton Hvornum 6d0cf26eba
Added a advanced=bool flag to Profile() class and enabled it on the cosmic-epoch profile (#2619)
* Added a advanced=True flag to Profile() class, to be able to hide certain profiles behind --advanced

* Removed debugging sleep

* Made sure cosmic-greeter was hidden behind --advanced, and cleaned up --advanced checks on Profile()

* storage['arguments'] is not defined during code-init, falling back to sys.argv for cosmic-greeter check
2024-08-22 08:28:16 +02:00
utuhiro78 00eeae0abd
Update Japanese translation (#2620) 2024-08-21 17:49:37 +02:00
arlsdk ff24ceb8d4
#2587 Sugesstions for Cinammon default_profile (#2612) 2024-08-20 18:41:01 +10:00
summoner001 5707372bb4
Update hungarian translation (#2618)
Translating the new string

Ready to merge.
2024-08-19 13:48:29 +02:00
killertofus b1ead53846
added cosmic for a desktop (#2615)
* cosmic is out of the aur
2024-08-17 16:40:07 +02:00
Anton Hvornum f6776f3801
Bumping version to: v2.8.2 (#2616) 2024-08-17 10:07:02 +02:00
Daniel E Rodriguez Rivera 58d74ea237
Refactor Argument Parsing Logic (#2605)
* Update Spanish translation for 'greeter'

* Moved the os.execve call below the debug logging statement in SysCommandWorker

* Fix call to removed function in DesktopProfile class

* Refactor: Move precondition check for '=' to the beginning of the loop

This commit moves the check for the '=' element to the start of the while loop in the `parse_unspecified_argument_list` function. This change improves code readability and ensures that the precondition is evaluated before processing other elements, enhancing the overall flow of the argument parsing logic.

* Refactor: Remove redundant 'else' statement in argument parsing logic

This commit simplifies the control flow in the `parse_unspecified_argument_list` function by removing a redundant 'else' block. The logic is streamlined to improve readability and maintainability while preserving the original functionality. The removal of unnecessary nesting helps clarify the conditions under which elements are processed.

* Refactor: Remove redundant 'else' statement in argument parsing logic

This commit simplifies the control flow in the `parse_unspecified_argument_list` function by removing a redundant 'else' block. The logic is streamlined to improve readability and maintainability while preserving the original functionality. The removal of unnecessary nesting helps clarify the conditions under which elements are processed.

* Replace conditional validation with filtering

This commit modifies the `parse_unspecified_argument_list` function to filter out unwanted elements from the `unknowns` list instead of using a conditional check with an `if` statement. This change improves code readability and efficiency by utilizing list comprehension to create a new list that excludes elements equal to "=".
2024-08-05 12:38:53 +02:00
renovate[bot] 65b09ca618
chore(deps): update pre-commit hook pycqa/flake8 to v7.1.1 (#2608)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-05 07:34:38 +10:00
renovate[bot] 727368e09d
chore(deps): update dependency dev/flake8 to v7.1.1 (#2607)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-05 07:34:19 +10:00
mintsuki fed39f21c9
Updates for new Limine 8.x config filename and syntax (#2606) 2024-08-03 11:56:07 +02:00
Anton Hvornum 98518e444a
Use `/mirrors/status/json/` instead of `/mirrorlist/` to get mirror lists (#2599)
* Using JSON endpoint instead of ASCII endpoint for mirror listing, as the JSON endpoint is cached and easier to parse

* Added a TODO to handle unknown regional mirrors (which lacks info in the backend)

* Filtered out 'bad' mirrors. Also added a sorting mechanism that uses the mirrors 'score' rather than just the URL name. This will emulate the reflector.service/rankmirrors behavior and thus reducing the need to re-rank the mirrors.

* Added the ability to sort mirrors via latency or download speed using sorted(mirror_list, key=lambda mirror: (mirror.score, mirror.speed)) - but I have not implemented the sorting via the menu yet, and I have not integrated the new MirrorStatus model into the handling of URL's. I still need to figure out where the {region: [url, url]} is being used, so that i can convert to {region: [mirror.url, mirror.url]} logic.

* Converting MirrorStatus model to {mirror: [url, url]}

* Added debug information for /var/log/archinstall/install.log

* Fixing flake8

* Fixed issue where 'dead' mirrors have no score, and thus can't be round():ed

* Forgot to return model validation data after validation

* Improving debug/info output

* Reverting change in #2350 - Writing over instead of appending to mirrorlist

* Mirror URL's reported by the JSON endpoint does not contain the repo format, only the base location for the mirror. So we have to adjust for this.

* pydantic did not honor 'private' variables in 'before' model validator, had to change to 'after' instead.

* Sorted out mypy typing matching the new MirrorStatus model

* Added pydantic as a dependency, it's time!

* Updated workflow to include pydantic

* Added return values from model @property decorators.
2024-08-02 15:24:44 +02:00
NorwayFun 4af3b02707
po: Update Georgian translation (#2604)
* Add files via upload

* Update Georgian translation
2024-08-02 16:09:31 +10:00
Tristan d'Audibert a72d798ee6
fix(lib/installer.py) Patch mkinitcpio.conf with putting encrypt after keymap (#2601)
Signed-off-by: Tristan d'Audibert <tristan.daudibert@gmail.com>
2024-08-02 14:47:00 +10:00
renovate[bot] 997e28d8dd
Update pre-commit hook pre-commit/mirrors-mypy to v1.11.1 (#2603)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-31 21:00:28 +10:00
renovate[bot] 2f4bb97483
Update dependency dev/mypy to v1.11.1 (#2602)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-31 12:32:01 +10:00
Daniel E Rodriguez Rivera 74ba8fb3b4
Fix call to removed function in DesktopProfile class (#2596)
* Update Spanish translation for 'greeter'

* Moved the os.execve call below the debug logging statement in SysCommandWorker

* Fix call to removed function in DesktopProfile class
2024-07-30 21:55:34 +10:00
walken a5fd20595d
Czech localization update (#2597) 2024-07-30 21:52:34 +10:00
codefiles a2e539a2bd
Fix mount order (#2595) 2024-07-29 08:24:29 +02:00
Daniel E Rodriguez Rivera 3bdead0390
Reposition os.execve call to enable debug logging before child process termination (#2593)
* Update Spanish translation for 'greeter'

* Moved the os.execve call below the debug logging statement in SysCommandWorker
2024-07-29 08:16:46 +10:00
renovate[bot] 0e8efecfa1
Update dependency dev/pre-commit to v3.8.0 (#2594)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-29 08:15:37 +10:00
Daniel Girtler 32bc37545e
Upgrade mypy 1.11 (#2588)
* Upgrade mypy 1.11

* Update

* Update

* Remove TProfile type
2024-07-27 07:23:47 +10:00
Daniel E Rodriguez Rivera 494cc29a3f
Update Spanish translation for 'greeter' (#2592) 2024-07-26 07:37:41 +10:00
renovate[bot] 48f510bd37
Update pre-commit hook pre-commit/mirrors-mypy to v1.11.0 (#2582)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-23 18:05:00 +10:00
Wellinton Kricowski 552930a98a
PT BR translation improvements (#2586)
* Update pt-BR translation

* [pt_BR] locales_generator + translation improvements

* PT BR translation improvements
2024-07-23 15:55:43 +10:00
*=0=1=4=* 8ecc77992f
`disk.Size(1, disk.Unit.GiB, sector_size)` for issue #913 (#2583)
* `disk.Size(1, disk.Unit.GiB, sector_size)` for issue #913

* default boot sector size is same for all partition layouts
2024-07-23 14:33:45 +10:00
Alexmelman88 ef252f5d0a
Update Russian translation (#2578) 2024-07-20 17:16:16 +10:00
Wise 5c85026582
Update Turkish translation (#2577) 2024-07-19 07:19:36 +10:00
GandalfBaum12371723613 52a795da66
Corrected one translation and added some more (#2574) 2024-07-12 07:26:01 +10:00
Martin f3fa5d5dec
Run oxipng/svgo against the images to save 40KB (#2420) 2024-07-11 20:05:26 +02:00
renovate[bot] 48e46ac067
Update pre-commit hook pycqa/flake8 to v7.1.0 (#2573)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-11 20:03:33 +02:00
renovate[bot] 4bfefc5470
Update pre-commit hook pre-commit/mirrors-mypy to v1.10.1 (#2572)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-11 20:03:13 +02:00
GandalfBaum12371723613 490e67e832
Update base.po (#2571) 2024-07-11 20:03:00 +02:00
Daniel Girtler 713f23b7ad
Enable pre-commit renovate support (#2570) 2024-07-11 19:57:49 +02:00
Daniel Girtler b9ab1e2b16
Curses menu - Continued (#2569)
* Edit text menu

* Fix alignment

* Scroll functionality

* Fix flake8
2024-07-11 19:54:24 +02:00