diff --git a/CHANGES b/CHANGES
index 2bf44c8a9..34c61c40c 100644
--- a/CHANGES
+++ b/CHANGES
@@ -3,10 +3,11 @@ contributors are listed. Note that Calamares does not have a historical
changelog -- this log starts with version 3.2.0. The release notes on the
website will have to do for older versions.
-# 3.2.25 (unreleased) #
+# 3.2.25 (2020-06-06) #
This release contains contributions from (alphabetically by first name):
- Anke Boersma
+ - Callum Farmer
- FLVAL
- Gaël PORTAY
@@ -20,6 +21,8 @@ This release contains contributions from (alphabetically by first name):
200kB in Calamares itself).
- Tests have been extended and now support a tests/CMakeTests.txt file
for fine-tuning tests for Python modules.
+ - SPDX identifiers are used much more widely and consistently in Calamares.
+ (thanks Callum)
## Modules ##
- The QML based *welcomeq* module is now a viable alternative to the
@@ -28,6 +31,11 @@ This release contains contributions from (alphabetically by first name):
all loads in the Calamares window itself. Additional features include the
option to customize the *About* info and load files like Release Notes
direct into Calamares, QML files added to the branding directory can be used.
+ - The *welcome* and *locale* modules that do GeoIP lookup can now also
+ use "fixed" style; this just negates the GeoIP lookup and substitutes a
+ constant (fixed) value; useful for testing specific locales.
+ - The *keyboard* module no longer uses *ca_eng* keyboards in Canada by
+ default, but sticks to the *us* keyboard. #1419
# 3.2.24 (2020-05-11) #
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b5095de09..fef723b24 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -13,7 +13,7 @@
# You should have received a copy of the GNU General Public License
# along with Calamares. If not, see .
#
-# SPDX-License-Identifier: GPL-3.0+
+# SPDX-License-Identifier: GPL-3.0-or-later
# License-Filename: LICENSE
#
###
diff --git a/CMakeModules/CalamaresAddBrandingSubdirectory.cmake b/CMakeModules/CalamaresAddBrandingSubdirectory.cmake
index 80cf86f38..9283b48a7 100644
--- a/CMakeModules/CalamaresAddBrandingSubdirectory.cmake
+++ b/CMakeModules/CalamaresAddBrandingSubdirectory.cmake
@@ -13,7 +13,7 @@
# You should have received a copy of the GNU General Public License
# along with Calamares. If not, see .
#
-# SPDX-License-Identifier: GPL-3.0+
+# SPDX-License-Identifier: GPL-3.0-or-later
# License-Filename: LICENSE
#
###
diff --git a/CMakeModules/CalamaresAddLibrary.cmake b/CMakeModules/CalamaresAddLibrary.cmake
index 0829d919e..6155293d7 100644
--- a/CMakeModules/CalamaresAddLibrary.cmake
+++ b/CMakeModules/CalamaresAddLibrary.cmake
@@ -13,7 +13,7 @@
# You should have received a copy of the GNU General Public License
# along with Calamares. If not, see .
#
-# SPDX-License-Identifier: GPL-3.0+
+# SPDX-License-Identifier: GPL-3.0-or-later
# License-Filename: LICENSE
#
###
diff --git a/CMakeModules/CalamaresAddModuleSubdirectory.cmake b/CMakeModules/CalamaresAddModuleSubdirectory.cmake
index 981ec4a01..fe4f34f94 100644
--- a/CMakeModules/CalamaresAddModuleSubdirectory.cmake
+++ b/CMakeModules/CalamaresAddModuleSubdirectory.cmake
@@ -13,7 +13,7 @@
# You should have received a copy of the GNU General Public License
# along with Calamares. If not, see .
#
-# SPDX-License-Identifier: GPL-3.0+
+# SPDX-License-Identifier: GPL-3.0-or-later
# License-Filename: LICENSE
#
###
diff --git a/CMakeModules/CalamaresAddPlugin.cmake b/CMakeModules/CalamaresAddPlugin.cmake
index c8f81e684..66536eda7 100644
--- a/CMakeModules/CalamaresAddPlugin.cmake
+++ b/CMakeModules/CalamaresAddPlugin.cmake
@@ -13,7 +13,7 @@
# You should have received a copy of the GNU General Public License
# along with Calamares. If not, see .
#
-# SPDX-License-Identifier: GPL-3.0+
+# SPDX-License-Identifier: GPL-3.0-or-later
# License-Filename: LICENSE
#
###
diff --git a/CMakeModules/CalamaresAddTest.cmake b/CMakeModules/CalamaresAddTest.cmake
index 65f9389e8..4dd673745 100644
--- a/CMakeModules/CalamaresAddTest.cmake
+++ b/CMakeModules/CalamaresAddTest.cmake
@@ -13,7 +13,7 @@
# You should have received a copy of the GNU General Public License
# along with Calamares. If not, see .
#
-# SPDX-License-Identifier: GPL-3.0+
+# SPDX-License-Identifier: GPL-3.0-or-later
# License-Filename: LICENSE
#
###
diff --git a/CMakeModules/CalamaresAddTranslations.cmake b/CMakeModules/CalamaresAddTranslations.cmake
index d74e4bdfb..bb15fb122 100644
--- a/CMakeModules/CalamaresAddTranslations.cmake
+++ b/CMakeModules/CalamaresAddTranslations.cmake
@@ -13,7 +13,7 @@
# You should have received a copy of the GNU General Public License
# along with Calamares. If not, see .
#
-# SPDX-License-Identifier: GPL-3.0+
+# SPDX-License-Identifier: GPL-3.0-or-later
# License-Filename: LICENSE
#
###
diff --git a/CMakeModules/CalamaresAutomoc.cmake b/CMakeModules/CalamaresAutomoc.cmake
index f8aa7faef..3de586ad2 100644
--- a/CMakeModules/CalamaresAutomoc.cmake
+++ b/CMakeModules/CalamaresAutomoc.cmake
@@ -13,7 +13,7 @@
# You should have received a copy of the GNU General Public License
# along with Calamares. If not, see .
#
-# SPDX-License-Identifier: GPL-3.0+
+# SPDX-License-Identifier: GPL-3.0-or-later
# License-Filename: LICENSE
#
###
diff --git a/LICENSES/BSD2 b/LICENSES/BSD2
new file mode 100644
index 000000000..919d22d1c
--- /dev/null
+++ b/LICENSES/BSD2
@@ -0,0 +1,24 @@
+
+ Copyright 2019 Adriaan de Groot
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
diff --git a/io.calamares.calamares.appdata.xml b/io.calamares.calamares.appdata.xml
index 355f485c2..d49a33b0f 100644
--- a/io.calamares.calamares.appdata.xml
+++ b/io.calamares.calamares.appdata.xml
@@ -2,7 +2,7 @@
io.calamares.calamares.desktopCC0-1.0
- GPL-3.0+
+ GPL-3.0-or-laterCalamaresCalamaresCalamares
diff --git a/lang/CMakeLists.txt b/lang/CMakeLists.txt
index 37ea8356c..efc6d6188 100644
--- a/lang/CMakeLists.txt
+++ b/lang/CMakeLists.txt
@@ -13,7 +13,7 @@
# You should have received a copy of the GNU General Public License
# along with Calamares. If not, see .
#
-# SPDX-License-Identifier: GPL-3.0+
+# SPDX-License-Identifier: GPL-3.0-or-later
# License-Filename: LICENSE
#
###
diff --git a/lang/calamares_da.ts b/lang/calamares_da.ts
index 72c7f798f..2caa87006 100644
--- a/lang/calamares_da.ts
+++ b/lang/calamares_da.ts
@@ -232,7 +232,7 @@
Venter på %n modul.
- Venter på %n moduler.
+ Venter på %n modul(er).
@@ -240,7 +240,7 @@
(%n sekund)
- (%n sekunder)
+ (%n sekund(er))
diff --git a/lang/calamares_de.ts b/lang/calamares_de.ts
index d1a705775..d4eccbf95 100644
--- a/lang/calamares_de.ts
+++ b/lang/calamares_de.ts
@@ -525,7 +525,7 @@ Dies wird das Installationsprogramm beenden und alle Änderungen gehen verloren.
-
+ <strong>Manuelle Partitionierung</strong><br/>Sie können selbst Partitionen erstellen oder in der Größe verändern. Eine GPT-Partitionstabelle und eine <strong>fat32 512Mb /boot-Partition ist ein Muss für UEFI-Installationen</strong>, entweder eine vorhandene ohne Formatierung verwenden oder eine Neue erstellen.
@@ -737,7 +737,7 @@ Dies wird das Installationsprogramm beenden und alle Änderungen gehen verloren.
-
+ Netzwerk-Installation. (Deaktiviert: Interner Fehler)
@@ -1830,42 +1830,42 @@ Dies wird das Installationsprogramm beenden und alle Änderungen gehen verloren.
-
+ Kommunikation
-
+ Entwicklung
-
+ Büro
-
+ Multimedia
-
+ Internet
-
+ Thema
-
+ Spielen
-
+ Dienstprogramme
@@ -2556,12 +2556,12 @@ Dies wird das Installationsprogramm beenden und alle Änderungen gehen verloren.
-
+ Eine EFI Systempartition wird benötigt, um %1 zu starten.<br/><br/>Um eine EFI Systempartition einzurichten, gehen Sie zurück und wählen oder erstellen Sie ein FAT32-Dateisystem mit einer aktivierten <strong>%3</strong> Markierung sowie <strong>%2</strong> als Einhängepunkt .<br/><br/>Sie können ohne die Einrichtung einer EFI-Systempartition fortfahren, aber ihr System wird unter Umständen nicht starten können.
-
+ Eine EFI Systempartition wird benötigt, um %1 zu starten.<br/><br/>Eine Partition mit dem Einhängepunkt <strong>%2</strong> wurde eingerichtet, jedoch wurde dort keine <strong>%3</strong> Markierung gesetzt.<br/>Um diese Markierung zu setzen, gehen Sie zurück und bearbeiten Sie die Partition.<br/><br/>Sie können ohne diese Markierung fortfahren, aber ihr System wird unter Umständen nicht starten können.
@@ -2571,12 +2571,12 @@ Dies wird das Installationsprogramm beenden und alle Änderungen gehen verloren.
-
+ Option zur Verwendung von GPT im BIOS
-
+ Eine GPT-Partitionstabelle ist die beste Option für alle Systeme. Dieses Installationsprogramm unterstützt ein solches Setup auch für BIOS-Systeme.<br/><br/>Um eine GPT-Partitionstabelle im BIOS zu konfigurieren, gehen Sie (falls noch nicht geschehen) zurück und setzen Sie die Partitionstabelle auf GPT, als nächstes erstellen Sie eine 8 MB große unformatierte Partition mit aktiviertem <strong>bios_grub</strong>-Markierung.<br/><br/>Eine unformatierte 8 MB große Partition ist erforderlich, um %1 auf einem BIOS-System mit GPT zu starten.
@@ -3666,7 +3666,7 @@ Ausgabe:
-
+ <h1>%1</h1><br/><strong>%2<br/>for %3</strong><br/><br/>Copyright 2014-2017 Teo Mrnjavac <teo@kde.org><br/>Copyright 2017-2020 Adriaan de Groot <groot@kde.org><br/>Danke an <a href="https://calamares.io/team/">das Calamares Team</a> und das <a href="https://www.transifex.com/calamares/calamares/">Calamares Übersetzerteam</a>.<br/><br/><a href="https://calamares.io/">Calamares</a> Entwicklung wird gesponsert von <br/><a href="http://www.blue-systems.com/">Blue Systems</a> - Liberating Software.
@@ -3701,12 +3701,23 @@ Ausgabe:
development is sponsored by <br/>
<a href='http://www.blue-systems.com/'>Blue Systems</a> -
Liberating Software.
-
+ <h1>%1</h1><br/>
+<strong>%2<br/>
+for %3</strong><br/><br/>
+Copyright 2014-2017 Teo Mrnjavac <teo@kde.org><br/>
+Copyright 2017-2020 Adriaan de Groot <groot@kde.org><br/>
+Danke an das <a href='https://calamares.io/team/'>Calamares Team</a>
+und an das <a href='https://www.transifex.com/calamares/calamares/'>Calamares
+Übersetzerteam</a>.<br/><br/>
+<a href='https://calamares.io/'>Calamares</a>
+Entwicklung wird gesponsert von <br/>
+<a href='http://www.blue-systems.com/'>Blue Systems</a> -
+Liberating Software.
-
+ Zurück
@@ -3714,44 +3725,44 @@ Ausgabe:
-
+ Tastaturmodell
-
+ Wählen Sie Ihr bevorzugtes Tastaturmodell oder verwenden Sie das Standardmodell auf Grundlage der erkannten Hardware
-
+ Aktualisieren
-
+ Layouts
-
+ Tastaturlayout
-
+ Modelle
-
+ Varianten
-
+ Testen Sie Ihre Tastatur
@@ -3789,12 +3800,32 @@ Ausgabe:
</ul>
<p>The vertical scrollbar is adjustable, current width set to 10.</p>
-
+ <h3>%1</h3>
+<p>Dies ist eine Beispiel-QML-Datei, die Optionen in RichText mit Flickable-Inhalt zeigt.</p>
+
+<p>QML mit RichText kann HTML-Tags verwenden, Flickable Inhalt ist nützlich für Touchscreens.</p>
+
+<p><b>Dies ist fetter Text.</b></p>
+<p><i>Das ist kursiver Text.</i></p>
+<p><u>Das ist unterstrichener Text.</u></p>
+<p><center>Dieser Text ist mittig ausgerichtet.</center></p>
+<p><s>Das ist durchgestrichen.</s></p>
+
+<p>Code Beispiel:
+<code>ls -l /home</code></p>
+
+<p><b>Listen:</b></p>
+<ul>
+<li>Intel CPU Systeme</li>
+<li>AMD CPU Systeme</li>
+</ul>
+
+<p>Die vertikale Bildlaufleiste ist einstellbar, die aktuelle Breite ist auf 10 eingestellt.</p>
-
+ Zurück
@@ -3803,7 +3834,7 @@ Ausgabe:
-
+ <h3>Willkommen zum %1 <quote>%2</quote> Installationsprogramm</h3><p>Dieses Programm wird Ihnen einige Fragen stellen und %1 auf Ihrem Computer einrichten.</p>
diff --git a/lang/calamares_it_IT.ts b/lang/calamares_it_IT.ts
index fb92b4dd7..2599b2e37 100644
--- a/lang/calamares_it_IT.ts
+++ b/lang/calamares_it_IT.ts
@@ -2555,12 +2555,12 @@ Il programma d'installazione sarà terminato e tutte le modifiche andranno perse
-
+ Una partizione EFI è necessaria per avviare %1.<br/><br/> Per configurare una partizione EFI, tornare indietro e selezionare o creare un filesystem FAT32 con il parametro<strong>%3</strong>abilitato e punto di montaggio <strong>%2</strong>. <br/><br/>Si può continuare senza impostare una partizione EFI ma il sistema potrebbe non avviarsi correttamente.
-
+ Una partizione EFI è necessaria per avviare %1.<br/><br/> Una partizione è stata configurata con punto di montaggio <strong>%2</strong> ma il suo parametro <strong>%3</strong> non è impostato.<br/>Per impostare il flag, tornare indietro e modificare la partizione.<br/><br/>Si può continuare senza impostare il parametro ma il sistema potrebbe non avviarsi correttamente.
@@ -3813,7 +3813,8 @@ Output:
-
+ <h3>Benvenuti al programma d'installazione %1 <quote>%2</quote></h3>
+<p>
diff --git a/lang/calamares_sq.ts b/lang/calamares_sq.ts
index 166c62781..869a1f18c 100644
--- a/lang/calamares_sq.ts
+++ b/lang/calamares_sq.ts
@@ -11,12 +11,12 @@
- Ky sistem qe nisur me një mjedis nisjesh <strong>EFI</strong>.<br><br>Që të formësojë nisjen nga një mjedis EFI, ky instalues duhet të vërë në punë një aplikacion ngarkuesi nisësi, të tillë si <strong>GRUB</strong> ose <strong>systemd-boot</strong> në një <strong>Pjesë EFI Sistemi</strong>. Kjo bëhet vetvetiu, hiq rastin kur zgjidhni pjesëzim dorazi, rast në të cilin duhet ta zgjidhni apo krijoni ju vetë.
+ Ky sistem qe nisur me një mjedis nisjesh <strong>EFI</strong>.<br><br>Që të formësojë nisjen nga një mjedis EFI, ky instalues duhet të vërë në punë një aplikacion ngarkuesi nisësi, të tillë si <strong>GRUB</strong> ose <strong>systemd-boot</strong> në një <strong>Pjesë EFI Sistemi</strong>. Kjo bëhet vetvetiu, hiq rastin kur zgjidhni pjesëtim dorazi, rast në të cilin duhet ta zgjidhni apo krijoni ju vetë.
- Ky sistem qe nisur me një mjedis nisjesh <strong>BIOS</strong>.<br><br>Që të formësojë nisjen nga një mjedis BIOS, ky instalues duhet të instalojë një ngarkues nisjesh, të tillë si <strong>GRUB</strong>, ose në krye të një pjese, ose te <strong>Master Boot Record</strong> pranë fillimit të tabelës së pjesëve (e parapëlqyer). Kjo bëhet vetvetiu, veç në zgjedhshi pjesëzim dorazi, rast në të cilin duhet ta rregulloni ju vetë.
+ Ky sistem qe nisur me një mjedis nisjesh <strong>BIOS</strong>.<br><br>Që të formësojë nisjen nga një mjedis BIOS, ky instalues duhet të instalojë një ngarkues nisjesh, të tillë si <strong>GRUB</strong>, ose në krye të një pjese, ose te <strong>Master Boot Record</strong> pranë fillimit të tabelës së pjesëve (e parapëlqyer). Kjo bëhet vetvetiu, veç në zgjedhshi pjesëtim dorazi, rast në të cilin duhet ta rregulloni ju vetë.
@@ -525,7 +525,7 @@ Instaluesi do të mbyllet dhe krejt ndryshimet do të hidhen tej.
- <strong>Pjesëzim dorazi</strong><br/>Mund të krijoni ose ripërmasoni pjesë ju vetë. Pasja e një tabele GPT pjesësh dhe <strong>512Mb fat32 /pjesë nisjeje është domosdoshmëri për instalime UEFI</strong>, ose përdorni një të tillë pa e formatuar, ose krijoni një të tillë.
+ <strong>Pjesëtim dorazi</strong><br/>Mund të krijoni ose ripërmasoni pjesë ju vetë. Pasja e një tabele GPT pjesësh dhe <strong>512Mb fat32 /pjesë nisjeje është domosdoshmëri për instalime UEFI</strong>, ose përdorni një të tillë pa e formatuar, ose krijoni një të tillë.
@@ -555,7 +555,7 @@ Instaluesi do të mbyllet dhe krejt ndryshimet do të hidhen tej.
- Në këtë sistem s’gjendet gjëkundi një pjesë EFI sistemi. Ju lutemi, kthehuni mbrapsht dhe përdorni pjesëzimin dorazi që të rregulloni %1.
+ Në këtë sistem s’gjendet gjëkundi një pjesë EFI sistemi. Ju lutemi, kthehuni mbrapsht dhe përdorni pjesëtimin dorazi që të rregulloni %1.
@@ -642,12 +642,12 @@ Instaluesi do të mbyllet dhe krejt ndryshimet do të hidhen tej.
- Hiqi montimet për veprime pjesëzimi te %1
+ Hiqi montimet për veprime pjesëtimi te %1
- Po hiqen montimet për veprime pjesëzimi te %1.
+ Po hiqen montimet për veprime pjesëtimi te %1.
@@ -1076,7 +1076,7 @@ Instaluesi do të mbyllet dhe krejt ndryshimet do të hidhen tej.
- Ky instalues <strong>s’pikas dot tabelë pjesësh</strong> te pajisja e depozitimit e përzgjedhur.<br><br>Ose pajisja s’ka tabelë pjesësh, ose tabela e pjesëve është e dëmtuar ose e një lloji të panjohur.<br>Ky instalues mund të krijojë për ju një tabelë të re pjesësh, ose vetvetiu, ose përmes faqes së pjesëzimit dorazi.
+ Ky instalues <strong>s’pikas dot tabelë pjesësh</strong> te pajisja e depozitimit e përzgjedhur.<br><br>Ose pajisja s’ka tabelë pjesësh, ose tabela e pjesëve është e dëmtuar ose e një lloji të panjohur.<br>Ky instalues mund të krijojë për ju një tabelë të re pjesësh, ose vetvetiu, ose përmes faqes së pjesëtimit dorazi.
@@ -2478,7 +2478,7 @@ Instaluesi do të mbyllet dhe krejt ndryshimet do të hidhen tej.
- Tabela e pjesëzimit te %1 ka tashmë %2 pjesë parësore, dhe s’mund të shtohen të tjera. Ju lutemi, në vend të kësaj, hiqni një pjesë parësore dhe shtoni një pjesë të zgjeruar.
+ Tabela e pjesëtimit te %1 ka tashmë %2 pjesë parësore, dhe s’mund të shtohen të tjera. Ju lutemi, në vend të kësaj, hiqni një pjesë parësore dhe shtoni një pjesë të zgjeruar.
@@ -2511,7 +2511,7 @@ Instaluesi do të mbyllet dhe krejt ndryshimet do të hidhen tej.
- Pjesëzim <strong>dorazi</strong>.
+ Pjesëtim <strong>dorazi</strong>.
@@ -2531,7 +2531,7 @@ Instaluesi do të mbyllet dhe krejt ndryshimet do të hidhen tej.
- Pjesëzim <strong>dorazi</strong> në diskun <strong>%1</strong> (%2).
+ Pjesëtim <strong>dorazi</strong> në diskun <strong>%1</strong> (%2).
@@ -2805,7 +2805,7 @@ Përfundim:
- Hapësirë e papjesëzuar ose tabelë e panjohur pjesësh
+ Hapësirë e papjesëtuar ose tabelë e panjohur pjesësh
@@ -2860,7 +2860,7 @@ Përfundim:
- %1 s’mund të instalohet në një pjesë të llojit extended. Ju lutemi, përzgjidhni një pjesë parësore ose logjike ekzistuese.
+ %1 s’mund të instalohet në një pjesë të llojit “extended”. Ju lutemi, përzgjidhni një pjesë parësore ose logjike ekzistuese.
@@ -2890,7 +2890,7 @@ Përfundim:
- <strong>%2</strong><br/><br/>Në këtë sistem s’gjendet dot ndonjë pjesë sistemi EFI. Ju lutemi, që të rregulloni %1, kthehuni mbrapsht dhe përdorni procesin e pjesëzimit dorazi.
+ <strong>%2</strong><br/><br/>Në këtë sistem s’gjendet dot ndonjë pjesë sistemi EFI. Ju lutemi, që të rregulloni %1, kthehuni mbrapsht dhe përdorni procesin e pjesëtimit dorazi.
@@ -2902,7 +2902,7 @@ Përfundim:
- Për nisjen e %2 do të përdoret ndarja EFI e sistemit te %1.
+ Për nisjen e %2 do të përdoret pjesa EFI e sistemit te %1.
diff --git a/lang/python/de/LC_MESSAGES/python.mo b/lang/python/de/LC_MESSAGES/python.mo
index 64a77a392..64f71d6aa 100644
Binary files a/lang/python/de/LC_MESSAGES/python.mo and b/lang/python/de/LC_MESSAGES/python.mo differ
diff --git a/lang/python/de/LC_MESSAGES/python.po b/lang/python/de/LC_MESSAGES/python.po
index 1fa3ce41e..19bd1c911 100644
--- a/lang/python/de/LC_MESSAGES/python.po
+++ b/lang/python/de/LC_MESSAGES/python.po
@@ -5,8 +5,8 @@
#
# Translators:
# Adriaan de Groot , 2019
-# Andreas Eitel , 2019
# Christian Spaan, 2020
+# Andreas Eitel , 2020
#
#, fuzzy
msgid ""
@@ -15,7 +15,7 @@ msgstr ""
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-04-30 23:13+0200\n"
"PO-Revision-Date: 2017-08-09 10:34+0000\n"
-"Last-Translator: Christian Spaan, 2020\n"
+"Last-Translator: Andreas Eitel , 2020\n"
"Language-Team: German (https://www.transifex.com/calamares/teams/20061/de/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -99,11 +99,11 @@ msgstr "rsync fehlgeschlagen mit Fehlercode {}."
#: src/modules/unpackfs/main.py:302
msgid "Unpacking image {}/{}, file {}/{}"
-msgstr ""
+msgstr "Bild Entpacken {}/{}, Datei {}/{}"
#: src/modules/unpackfs/main.py:317
msgid "Starting to unpack {}"
-msgstr ""
+msgstr "Beginn des Entpackens {}"
#: src/modules/unpackfs/main.py:326 src/modules/unpackfs/main.py:432
msgid "Failed to unpack image \"{}\""
@@ -134,6 +134,8 @@ msgstr "Ungültige unsquash-Konfiguration"
#: src/modules/unpackfs/main.py:423
msgid "The filesystem for \"{}\" ({}) is not supported by your current kernel"
msgstr ""
+"Das Dateisystem für \"{}\". ({}) wird von Ihrem aktuellen Kernel nicht "
+"unterstützt"
#: src/modules/unpackfs/main.py:427
msgid "The source filesystem \"{}\" does not exist"
diff --git a/lang/python/nb/LC_MESSAGES/python.mo b/lang/python/nb/LC_MESSAGES/python.mo
index c5d4d2fb1..93379d3b8 100644
Binary files a/lang/python/nb/LC_MESSAGES/python.mo and b/lang/python/nb/LC_MESSAGES/python.mo differ
diff --git a/lang/python/nb/LC_MESSAGES/python.po b/lang/python/nb/LC_MESSAGES/python.po
index 9358dfb59..dd88e8fad 100644
--- a/lang/python/nb/LC_MESSAGES/python.po
+++ b/lang/python/nb/LC_MESSAGES/python.po
@@ -4,7 +4,7 @@
# FIRST AUTHOR , YEAR.
#
# Translators:
-# Tyler Moss , 2017
+# 865ac004d9acf2568b2e4b389e0007c7_fba755c <3516cc82d94f87187da1e036e5f09e42_616112>, 2017
#
#, fuzzy
msgid ""
@@ -13,7 +13,7 @@ msgstr ""
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-04-30 23:13+0200\n"
"PO-Revision-Date: 2017-08-09 10:34+0000\n"
-"Last-Translator: Tyler Moss , 2017\n"
+"Last-Translator: 865ac004d9acf2568b2e4b389e0007c7_fba755c <3516cc82d94f87187da1e036e5f09e42_616112>, 2017\n"
"Language-Team: Norwegian Bokmål (https://www.transifex.com/calamares/teams/20061/nb/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
diff --git a/src/libcalamares/CMakeLists.txt b/src/libcalamares/CMakeLists.txt
index fa4265d6e..b43b89289 100644
--- a/src/libcalamares/CMakeLists.txt
+++ b/src/libcalamares/CMakeLists.txt
@@ -1,3 +1,24 @@
+# === This file is part of Calamares - ===
+#
+# SPDX-FileCopyrightText: 2020 Adriaan de Groot
+#
+# Calamares is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Calamares is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Calamares. If not, see .
+#
+# SPDX-License-Identifier: GPL-3.0-or-later
+# License-Filename: LICENSE
+#
+#
# libcalamares is the non-GUI part of Calamares, which includes handling
# translations, configurations, logging, utilities, global storage, and (non-GUI) jobs.
@@ -23,6 +44,7 @@ set( libSources
# GeoIP services
geoip/Interface.cpp
+ geoip/GeoIPFixed.cpp
geoip/GeoIPJSON.cpp
geoip/Handler.cpp
diff --git a/src/libcalamares/CalamaresConfig.h.in b/src/libcalamares/CalamaresConfig.h.in
index b31de95b5..98efa8c26 100644
--- a/src/libcalamares/CalamaresConfig.h.in
+++ b/src/libcalamares/CalamaresConfig.h.in
@@ -1,3 +1,24 @@
+/* === This file is part of Calamares - ===
+ *
+ * SPDX-FileCopyrightText: 2020 Adriaan de Groot
+ *
+ * Calamares is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Calamares is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
+ */
#ifndef CALAMARESCONFIG_H
#define CALAMARESCONFIG_H
diff --git a/src/libcalamares/CppJob.cpp b/src/libcalamares/CppJob.cpp
index b6b18b1b7..a2647463a 100644
--- a/src/libcalamares/CppJob.cpp
+++ b/src/libcalamares/CppJob.cpp
@@ -1,7 +1,7 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2014, Teo Mrnjavac
- * Copyright 2016, Kevin Kofler
+ *
+ * SPDX-FileCopyrightText: 2014 Teo Mrnjavac
+ * SPDX-FileCopyrightText: 2016 Kevin Kofler
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,6 +15,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#include "CppJob.h"
diff --git a/src/libcalamares/CppJob.h b/src/libcalamares/CppJob.h
index e4997733e..ee093675a 100644
--- a/src/libcalamares/CppJob.h
+++ b/src/libcalamares/CppJob.h
@@ -1,8 +1,8 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2014-2015, Teo Mrnjavac
- * Copyright 2016, Kevin Kofler
- * Copyright 2020, Adriaan de Groor
+ *
+ * SPDX-FileCopyrightText: 2014-2015 Teo Mrnjavac
+ * SPDX-FileCopyrightText: 2016 Kevin Kofler
+ * SPDX-FileCopyrightText: 2020 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -16,6 +16,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#ifndef CALAMARES_CPPJOB_H
diff --git a/src/libcalamares/DllMacro.h b/src/libcalamares/DllMacro.h
index 528a70c2d..2eeea331e 100644
--- a/src/libcalamares/DllMacro.h
+++ b/src/libcalamares/DllMacro.h
@@ -1,7 +1,7 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2014, Teo Mrnjavac
- * Copyright 2020, Adriaan de Groot
+ *
+ * SPDX-FileCopyrightText: 2014 Teo Mrnjavac
+ * SPDX-FileCopyrightText: 2020 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,6 +15,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#ifndef DLLMACRO_H
diff --git a/src/libcalamares/GlobalStorage.cpp b/src/libcalamares/GlobalStorage.cpp
index 428b01103..d58a3b0c6 100644
--- a/src/libcalamares/GlobalStorage.cpp
+++ b/src/libcalamares/GlobalStorage.cpp
@@ -1,7 +1,7 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2014-2015, Teo Mrnjavac
- * Copyright 2017-2018, Adriaan de Groot
+ *
+ * SPDX-FileCopyrightText: 2014-2015 Teo Mrnjavac
+ * SPDX-FileCopyrightText: 2017-2018 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,6 +15,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#include "GlobalStorage.h"
diff --git a/src/libcalamares/GlobalStorage.h b/src/libcalamares/GlobalStorage.h
index 2a59009f7..e9ba1da8a 100644
--- a/src/libcalamares/GlobalStorage.h
+++ b/src/libcalamares/GlobalStorage.h
@@ -1,7 +1,7 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2014-2015, Teo Mrnjavac
- * Copyright 2017-2018, Adriaan de Groot
+ *
+ * SPDX-FileCopyrightText: 2014-2015 Teo Mrnjavac
+ * SPDX-FileCopyrightText: 2017-2018 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,6 +15,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#ifndef CALAMARES_GLOBALSTORAGE_H
diff --git a/src/libcalamares/Job.cpp b/src/libcalamares/Job.cpp
index d074a18cb..95339f349 100644
--- a/src/libcalamares/Job.cpp
+++ b/src/libcalamares/Job.cpp
@@ -1,6 +1,6 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2014-2015, Teo Mrnjavac
+ *
+ * SPDX-FileCopyrightText: 2014-2015 Teo Mrnjavac
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,6 +14,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#include "Job.h"
diff --git a/src/libcalamares/Job.h b/src/libcalamares/Job.h
index d93e97cf7..18f11158f 100644
--- a/src/libcalamares/Job.h
+++ b/src/libcalamares/Job.h
@@ -1,6 +1,6 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2014-2015, Teo Mrnjavac
+ *
+ * SPDX-FileCopyrightText: 2014-2015 Teo Mrnjavac
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,8 +14,11 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
-
#ifndef CALAMARES_JOB_H
#define CALAMARES_JOB_H
diff --git a/src/libcalamares/JobExample.cpp b/src/libcalamares/JobExample.cpp
index 83da2b1e1..ba085be6e 100644
--- a/src/libcalamares/JobExample.cpp
+++ b/src/libcalamares/JobExample.cpp
@@ -1,6 +1,6 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2019, Adriaan de Groot
+ *
+ * SPDX-FileCopyrightText: 2019 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,8 +14,11 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
-
#include "JobExample.h"
namespace Calamares
diff --git a/src/libcalamares/JobExample.h b/src/libcalamares/JobExample.h
index 92f8f8fb6..e0307f64a 100644
--- a/src/libcalamares/JobExample.h
+++ b/src/libcalamares/JobExample.h
@@ -1,6 +1,6 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2019, Adriaan de Groot
+ *
+ * SPDX-FileCopyrightText: 2019 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,6 +14,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#ifndef CALAMARES_JOB_EXAMPLE_H
diff --git a/src/libcalamares/JobQueue.cpp b/src/libcalamares/JobQueue.cpp
index 6a2aa4cba..adff9464b 100644
--- a/src/libcalamares/JobQueue.cpp
+++ b/src/libcalamares/JobQueue.cpp
@@ -1,7 +1,7 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2014-2015, Teo Mrnjavac
- * Copyright 2018, Adriaan de Groot
+ *
+ * SPDX-FileCopyrightText: 2014-2015 Teo Mrnjavac
+ * SPDX-FileCopyrightText: 2018 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,6 +15,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#include "JobQueue.h"
diff --git a/src/libcalamares/JobQueue.h b/src/libcalamares/JobQueue.h
index 88a2bb0c3..ff2694d8f 100644
--- a/src/libcalamares/JobQueue.h
+++ b/src/libcalamares/JobQueue.h
@@ -1,6 +1,6 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2014-2015, Teo Mrnjavac
+ *
+ * SPDX-FileCopyrightText: 2014-2015 Teo Mrnjavac
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,6 +14,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#ifndef CALAMARES_JOBQUEUE_H
diff --git a/src/libcalamares/ProcessJob.cpp b/src/libcalamares/ProcessJob.cpp
index 744f5f9bf..c6cb94359 100644
--- a/src/libcalamares/ProcessJob.cpp
+++ b/src/libcalamares/ProcessJob.cpp
@@ -1,7 +1,7 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2014-2015, Teo Mrnjavac
- * Copyright 2018, Adriaan de Groot
+ *
+ * SPDX-FileCopyrightText: 2014-2015 Teo Mrnjavac
+ * SPDX-FileCopyrightText: 2018 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,6 +15,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#include "ProcessJob.h"
diff --git a/src/libcalamares/ProcessJob.h b/src/libcalamares/ProcessJob.h
index e826acb1d..75ef6f6e3 100644
--- a/src/libcalamares/ProcessJob.h
+++ b/src/libcalamares/ProcessJob.h
@@ -1,7 +1,7 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2014, Teo Mrnjavac
- * Copyright 2017-2019, Adriaan de Groot
+ *
+ * SPDX-FileCopyrightText: 2014 Teo Mrnjavac
+ * SPDX-FileCopyrightText: 2017-2019 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,6 +15,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#ifndef CALAMARES_PROCESSJOB_H
diff --git a/src/libcalamares/PythonHelper.cpp b/src/libcalamares/PythonHelper.cpp
index 0b5d77ac1..2f5418888 100644
--- a/src/libcalamares/PythonHelper.cpp
+++ b/src/libcalamares/PythonHelper.cpp
@@ -1,7 +1,7 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2014, Teo Mrnjavac
- * Copyright 2017-2018, 2020, Adriaan de Groot
+ *
+ * SPDX-FileCopyrightText: 2014 Teo Mrnjavac
+ * SPDX-FileCopyrightText: 2017-2020 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,6 +15,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#include "PythonHelper.h"
diff --git a/src/libcalamares/PythonHelper.h b/src/libcalamares/PythonHelper.h
index 7528732a0..7acea5832 100644
--- a/src/libcalamares/PythonHelper.h
+++ b/src/libcalamares/PythonHelper.h
@@ -1,7 +1,7 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2014, Teo Mrnjavac
- * Copyright 2018, 2020, Adriaan de Groot
+ *
+ * SPDX-FileCopyrightText: 2014 Teo Mrnjavac
+ * SPDX-FileCopyrightText: 2018-2020 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,6 +15,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#ifndef CALAMARES_PYTHONJOBHELPER_H
diff --git a/src/libcalamares/PythonJob.cpp b/src/libcalamares/PythonJob.cpp
index 9069c49dc..50828e896 100644
--- a/src/libcalamares/PythonJob.cpp
+++ b/src/libcalamares/PythonJob.cpp
@@ -1,7 +1,7 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2014-2016, Teo Mrnjavac
- * Copyright 2018, 2020, Adriaan de Groot
+ *
+ * SPDX-FileCopyrightText: 2014-2016 Teo Mrnjavac
+ * SPDX-FileCopyrightText: 2018-2020 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,8 +15,11 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
-
#include "PythonJob.h"
#include "CalamaresVersion.h"
diff --git a/src/libcalamares/PythonJob.h b/src/libcalamares/PythonJob.h
index eb9d8fff1..498eac44f 100644
--- a/src/libcalamares/PythonJob.h
+++ b/src/libcalamares/PythonJob.h
@@ -1,7 +1,7 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2014, Teo Mrnjavac
- * Copyright 2020, Adriaan de Groot
+ *
+ * SPDX-FileCopyrightText: 2014 Teo Mrnjavac
+ * SPDX-FileCopyrightText: 2020 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,6 +15,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#ifndef CALAMARES_PYTHONJOB_H
diff --git a/src/libcalamares/PythonJobApi.cpp b/src/libcalamares/PythonJobApi.cpp
index ecca466fe..2f8818738 100644
--- a/src/libcalamares/PythonJobApi.cpp
+++ b/src/libcalamares/PythonJobApi.cpp
@@ -1,7 +1,7 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2014-2016, Teo Mrnjavac
- * Copyright 2017-2020, Adriaan de Groot
+ *
+ * SPDX-FileCopyrightText: 2014-2016 Teo Mrnjavac
+ * SPDX-FileCopyrightText: 2017-2020 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,6 +15,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#include "PythonJobApi.h"
diff --git a/src/libcalamares/PythonJobApi.h b/src/libcalamares/PythonJobApi.h
index f91572b3d..6fd162912 100644
--- a/src/libcalamares/PythonJobApi.h
+++ b/src/libcalamares/PythonJobApi.h
@@ -1,7 +1,7 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2014-2016, Teo Mrnjavac
- * Copyright 2017-2018, 2020, Adriaan de Groot
+ *
+ * SPDX-FileCopyrightText: 2014-2016 Teo Mrnjavac
+ * SPDX-FileCopyrightText: 2017-2020 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,6 +15,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#ifndef PYTHONJOBAPI_H
diff --git a/src/libcalamares/Settings.cpp b/src/libcalamares/Settings.cpp
index da388ea32..3c45c2e43 100644
--- a/src/libcalamares/Settings.cpp
+++ b/src/libcalamares/Settings.cpp
@@ -1,9 +1,9 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2019, Dominic Hayes
- * Copyright 2019, Gabriel Craciunescu
- * Copyright 2014-2015, Teo Mrnjavac
- * Copyright 2017-2018, Adriaan de Groot
+ *
+ * SPDX-FileCopyrightText: 2014-2015 Teo Mrnjavac
+ * SPDX-FileCopyrightText: 2019 Gabriel Craciunescu
+ * SPDX-FileCopyrightText: 2019 Dominic Hayes
+ * SPDX-FileCopyrightText: 2017-2018 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -17,6 +17,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#include "Settings.h"
diff --git a/src/libcalamares/Settings.h b/src/libcalamares/Settings.h
index 3cedd6e2b..098e010e5 100644
--- a/src/libcalamares/Settings.h
+++ b/src/libcalamares/Settings.h
@@ -1,9 +1,9 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2019, Dominic Hayes
- * Copyright 2019, Gabriel Craciunescu
- * Copyright 2014-2015, Teo Mrnjavac
- * Copyright 2017-2018, Adriaan de Groot
+ *
+ * SPDX-FileCopyrightText: 2014-2015 Teo Mrnjavac
+ * SPDX-FileCopyrightText: 2019 Gabriel Craciunescu
+ * SPDX-FileCopyrightText: 2019 Dominic Hayes
+ * SPDX-FileCopyrightText: 2017-2018 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -17,6 +17,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#ifndef SETTINGS_H
diff --git a/src/libcalamares/geoip/GeoIPFixed.cpp b/src/libcalamares/geoip/GeoIPFixed.cpp
new file mode 100644
index 000000000..69d5d3a4e
--- /dev/null
+++ b/src/libcalamares/geoip/GeoIPFixed.cpp
@@ -0,0 +1,47 @@
+/* === This file is part of Calamares - ===
+ *
+ * SPDX-FileCopyrightText: 2020 Adriaan de Groot
+ *
+ * Calamares is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Calamares is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ */
+
+#include "GeoIPFixed.h"
+
+namespace CalamaresUtils
+{
+namespace GeoIP
+{
+
+GeoIPFixed::GeoIPFixed( const QString& attribute )
+ : Interface( attribute.isEmpty() ? QStringLiteral( "Europe/Amsterdam" ) : attribute )
+{
+}
+
+QString
+GeoIPFixed::rawReply( const QByteArray& )
+{
+ return m_element;
+}
+
+GeoIP::RegionZonePair
+GeoIPFixed::processReply( const QByteArray& data )
+{
+ return splitTZString( rawReply( data ) );
+}
+
+} // namespace GeoIP
+} // namespace CalamaresUtils
diff --git a/src/libcalamares/geoip/GeoIPFixed.h b/src/libcalamares/geoip/GeoIPFixed.h
new file mode 100644
index 000000000..5d6fca266
--- /dev/null
+++ b/src/libcalamares/geoip/GeoIPFixed.h
@@ -0,0 +1,55 @@
+/* === This file is part of Calamares - ===
+ *
+ * SPDX-FileCopyrightText: 2020 Adriaan de Groot
+ *
+ * Calamares is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Calamares is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ */
+
+#ifndef GEOIP_GEOIPFIXED_H
+#define GEOIP_GEOIPFIXED_H
+
+#include "Interface.h"
+
+namespace CalamaresUtils
+{
+namespace GeoIP
+{
+/** @brief GeoIP with a fixed return value
+ *
+ * The data is ignored entirely and the attribute value is returned unchanged.
+ * Note that you still need to provide a usable URL for a successful GeoIP
+ * lookup -- the URL's data is just ignored.
+ *
+ * @note This class is an implementation detail.
+ */
+class GeoIPFixed : public Interface
+{
+public:
+ /** @brief Configure the value to return from rawReply()
+ *
+ * An empty string, which would not be a valid zone name, is
+ * translated to "Europe/Amsterdam".
+ */
+ explicit GeoIPFixed( const QString& value = QString() );
+
+ virtual RegionZonePair processReply( const QByteArray& ) override;
+ virtual QString rawReply( const QByteArray& ) override;
+};
+
+} // namespace GeoIP
+} // namespace CalamaresUtils
+#endif
diff --git a/src/libcalamares/geoip/GeoIPJSON.cpp b/src/libcalamares/geoip/GeoIPJSON.cpp
index 85dc79619..6522ca085 100644
--- a/src/libcalamares/geoip/GeoIPJSON.cpp
+++ b/src/libcalamares/geoip/GeoIPJSON.cpp
@@ -1,7 +1,7 @@
-/* === This file is part of Calamares - ===
- *
- * Copyright 2014-2016, Teo Mrnjavac
- * Copyright 2018, Adriaan de Groot
+/* === This file is part of Calamares - ===
+ *
+ * SPDX-FileCopyrightText: 2014-2016 Teo Mrnjavac
+ * SPDX-FileCopyrightText: 2018 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,6 +15,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#include "GeoIPJSON.h"
diff --git a/src/libcalamares/geoip/GeoIPJSON.h b/src/libcalamares/geoip/GeoIPJSON.h
index 3f7756dd8..246556c74 100644
--- a/src/libcalamares/geoip/GeoIPJSON.h
+++ b/src/libcalamares/geoip/GeoIPJSON.h
@@ -1,6 +1,6 @@
-/* === This file is part of Calamares - ===
- *
- * Copyright 2018-2019, Adriaan de Groot
+/* === This file is part of Calamares - ===
+ *
+ * SPDX-FileCopyrightText: 2018-2019 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,6 +14,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#ifndef GEOIP_GEOIPJSON_H
diff --git a/src/libcalamares/geoip/GeoIPTests.cpp b/src/libcalamares/geoip/GeoIPTests.cpp
index 4b1f8f8e1..9650cfe2d 100644
--- a/src/libcalamares/geoip/GeoIPTests.cpp
+++ b/src/libcalamares/geoip/GeoIPTests.cpp
@@ -1,6 +1,6 @@
-/* === This file is part of Calamares - ===
- *
- * Copyright 2018, Adriaan de Groot
+/* === This file is part of Calamares - ===
+ *
+ * SPDX-FileCopyrightText: 2018 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,10 +14,15 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#include "GeoIPTests.h"
+#include "GeoIPFixed.h"
#include "GeoIPJSON.h"
#ifdef QT_XML_LIB
#include "GeoIPXML.h"
@@ -240,3 +245,35 @@ GeoIPTests::testGet()
CHECK_GET( XML, QString(), "https://geoip.kde.org/v1/ubiquity" ) // Temporary KDE service
#endif
}
+
+void
+GeoIPTests::testFixed()
+{
+ {
+ GeoIPFixed f;
+ auto tz = f.processReply( QByteArray() );
+ QCOMPARE( tz.first, QStringLiteral( "Europe" ) );
+ QCOMPARE( tz.second, QStringLiteral( "Amsterdam" ) );
+
+ QCOMPARE( f.processReply( xml_data_ubiquity ), tz );
+ QCOMPARE( f.processReply( QByteArray( "derp" ) ), tz );
+ }
+ {
+ GeoIPFixed f( QStringLiteral( "America/Vancouver" ) );
+ auto tz = f.processReply( QByteArray() );
+ QCOMPARE( tz.first, QStringLiteral( "America" ) );
+ QCOMPARE( tz.second, QStringLiteral( "Vancouver" ) );
+
+ QCOMPARE( f.processReply( xml_data_ubiquity ), tz );
+ QCOMPARE( f.processReply( QByteArray( "derp" ) ), tz );
+ }
+ {
+ GeoIPFixed f( QStringLiteral( "America/North Dakota/Beulah" ) );
+ auto tz = f.processReply( QByteArray() );
+ QCOMPARE( tz.first, QStringLiteral( "America" ) );
+ QCOMPARE( tz.second, QStringLiteral( "North_Dakota/Beulah" ) );
+
+ QCOMPARE( f.processReply( xml_data_ubiquity ), tz );
+ QCOMPARE( f.processReply( QByteArray( "derp" ) ), tz );
+ }
+}
diff --git a/src/libcalamares/geoip/GeoIPTests.h b/src/libcalamares/geoip/GeoIPTests.h
index a320e3263..746a83eca 100644
--- a/src/libcalamares/geoip/GeoIPTests.h
+++ b/src/libcalamares/geoip/GeoIPTests.h
@@ -1,6 +1,6 @@
-/* === This file is part of Calamares - ===
- *
- * Copyright 2018, Adriaan de Groot
+/* === This file is part of Calamares - ===
+ *
+ * SPDX-FileCopyrightText: 2018 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,6 +14,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#ifndef GEOIPTESTS_H
@@ -30,6 +34,7 @@ public:
private Q_SLOTS:
void initTestCase();
+ void testFixed();
void testJSON();
void testJSONalt();
void testJSONbad();
diff --git a/src/libcalamares/geoip/GeoIPXML.cpp b/src/libcalamares/geoip/GeoIPXML.cpp
index 2a97c5546..125614032 100644
--- a/src/libcalamares/geoip/GeoIPXML.cpp
+++ b/src/libcalamares/geoip/GeoIPXML.cpp
@@ -1,6 +1,6 @@
-/* === This file is part of Calamares - ===
- *
- * Copyright 2018, Adriaan de Groot
+/* === This file is part of Calamares - ===
+ *
+ * SPDX-FileCopyrightText: 2018 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,6 +14,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#include "GeoIPXML.h"
diff --git a/src/libcalamares/geoip/GeoIPXML.h b/src/libcalamares/geoip/GeoIPXML.h
index 73147ff91..d686928db 100644
--- a/src/libcalamares/geoip/GeoIPXML.h
+++ b/src/libcalamares/geoip/GeoIPXML.h
@@ -1,6 +1,6 @@
-/* === This file is part of Calamares - ===
- *
- * Copyright 2018-2019, Adriaan de Groot
+/* === This file is part of Calamares - ===
+ *
+ * SPDX-FileCopyrightText: 2018-2019 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,6 +14,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#ifndef GEOIP_GEOIPXML_H
diff --git a/src/libcalamares/geoip/Handler.cpp b/src/libcalamares/geoip/Handler.cpp
index 99e55e926..c76b86492 100644
--- a/src/libcalamares/geoip/Handler.cpp
+++ b/src/libcalamares/geoip/Handler.cpp
@@ -1,6 +1,6 @@
-/* === This file is part of Calamares - ===
- *
- * Copyright 2019, Adriaan de Groot
+/* === This file is part of Calamares - ===
+ *
+ * SPDX-FileCopyrightText: 2019 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,15 +14,21 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#include "Handler.h"
+#include "GeoIPFixed.h"
#include "GeoIPJSON.h"
#if defined( QT_XML_LIB )
#include "GeoIPXML.h"
#endif
+#include "Settings.h"
#include "network/Manager.h"
#include "utils/Logger.h"
#include "utils/NamedEnum.h"
@@ -40,7 +46,8 @@ handlerTypes()
static const NamedEnumTable names{
{ QStringLiteral( "none" ), Type::None },
{ QStringLiteral( "json" ), Type::JSON },
- { QStringLiteral( "xml" ), Type::XML }
+ { QStringLiteral( "xml" ), Type::XML },
+ { QStringLiteral( "fixed" ), Type::Fixed }
};
// *INDENT-ON*
// clang-format on
@@ -73,6 +80,10 @@ Handler::Handler( const QString& implementation, const QString& url, const QStri
{
cWarning() << "GeoIP style *none* does not do anything.";
}
+ else if ( m_type == Type::Fixed && Calamares::Settings::instance() && !Calamares::Settings::instance()->debugMode() )
+ {
+ cWarning() << "GeoIP style *fixed* is not recommended for production.";
+ }
#if !defined( QT_XML_LIB )
else if ( m_type == Type::XML )
{
@@ -99,6 +110,8 @@ create_interface( Handler::Type t, const QString& selector )
#else
return nullptr;
#endif
+ case Handler::Type::Fixed:
+ return std::make_unique< GeoIPFixed >( selector );
}
NOTREACHED return nullptr;
}
diff --git a/src/libcalamares/geoip/Handler.h b/src/libcalamares/geoip/Handler.h
index 518964caf..a44162576 100644
--- a/src/libcalamares/geoip/Handler.h
+++ b/src/libcalamares/geoip/Handler.h
@@ -1,6 +1,6 @@
-/* === This file is part of Calamares - ===
- *
- * Copyright 2019, Adriaan de Groot
+/* === This file is part of Calamares - ===
+ *
+ * SPDX-FileCopyrightText: 2019 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,6 +14,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#ifndef GEOIP_HANDLER_H
@@ -43,9 +47,10 @@ class DLLEXPORT Handler
public:
enum class Type
{
- None,
- JSON,
- XML
+ None, // No lookup, returns empty string
+ JSON, // JSON-formatted data, returns extracted field
+ XML, // XML-formatted data, returns extracted field
+ Fixed // Returns selector string verbatim
};
/** @brief An unconfigured handler; this always returns errors. */
diff --git a/src/libcalamares/geoip/Interface.cpp b/src/libcalamares/geoip/Interface.cpp
index 2cecb63c5..82acb7950 100644
--- a/src/libcalamares/geoip/Interface.cpp
+++ b/src/libcalamares/geoip/Interface.cpp
@@ -1,6 +1,6 @@
-/* === This file is part of Calamares - ===
- *
- * Copyright 2018, Adriaan de Groot
+/* === This file is part of Calamares - ===
+ *
+ * SPDX-FileCopyrightText: 2018 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,6 +14,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#include "Interface.h"
diff --git a/src/libcalamares/geoip/Interface.h b/src/libcalamares/geoip/Interface.h
index 1a9beaa41..1afcc911b 100644
--- a/src/libcalamares/geoip/Interface.h
+++ b/src/libcalamares/geoip/Interface.h
@@ -1,6 +1,6 @@
-/* === This file is part of Calamares - ===
- *
- * Copyright 2018-2019, Adriaan de Groot
+/* === This file is part of Calamares - ===
+ *
+ * SPDX-FileCopyrightText: 2018-2019 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,6 +14,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#ifndef GEOIP_INTERFACE_H
@@ -98,7 +102,7 @@ public:
virtual QString rawReply( const QByteArray& ) = 0;
protected:
- Interface( const QString& e = QString() );
+ Interface( const QString& element = QString() );
QString m_element; // string for selecting from data
};
diff --git a/src/libcalamares/geoip/test_geoip.cpp b/src/libcalamares/geoip/test_geoip.cpp
index 32c6f4e24..a2aff929e 100644
--- a/src/libcalamares/geoip/test_geoip.cpp
+++ b/src/libcalamares/geoip/test_geoip.cpp
@@ -1,6 +1,6 @@
-/* === This file is part of Calamares - ===
- *
- * Copyright 2018, Adriaan de Groot
+/* === This file is part of Calamares - ===
+ *
+ * SPDX-FileCopyrightText: 2018 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,6 +14,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
/**
@@ -22,6 +26,7 @@
#include
+#include "GeoIPFixed.h"
#include "GeoIPJSON.h"
#ifdef QT_XML_LIB
#include "GeoIPXML.h"
@@ -33,27 +38,34 @@ using namespace CalamaresUtils::GeoIP;
int
main( int argc, char** argv )
{
- if ( argc != 2 )
+ if ( ( argc != 2 ) && ( argc != 3 ) )
{
- cerr << "Usage: curl url | test_geoip \n";
+ cerr << "Usage: curl url | test_geoip [selector]\n";
return 1;
}
+ QString format( argv[ 1 ] );
+ QString selector = argc == 3 ? QString( argv[ 2 ] ) : QString();
+
Interface* handler = nullptr;
- if ( QStringLiteral( "json" ) == argv[ 1 ] )
+ if ( QStringLiteral( "json" ) == format )
{
- handler = new GeoIPJSON;
+ handler = new GeoIPJSON( selector );
}
#ifdef QT_XML_LIB
- else if ( QStringLiteral( "xml" ) == argv[ 1 ] )
+ else if ( QStringLiteral( "xml" ) == format )
{
- handler = new GeoIPXML;
+ handler = new GeoIPXML( selector );
}
#endif
+ else if ( QStringLiteral( "fixed" ) == format )
+ {
+ handler = new GeoIPFixed( selector );
+ }
if ( !handler )
{
- cerr << "Unknown format '" << argv[ 1 ] << "'\n";
+ cerr << "Unknown format '" << format.toLatin1().constData() << "'\n";
return 1;
}
diff --git a/src/libcalamares/locale/Label.cpp b/src/libcalamares/locale/Label.cpp
index 02583df8b..0be82a380 100644
--- a/src/libcalamares/locale/Label.cpp
+++ b/src/libcalamares/locale/Label.cpp
@@ -1,7 +1,7 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2014-2015, Teo Mrnjavac
- * Copyright 2017-2019, Adriaan de Groot
+ *
+ * SPDX-FileCopyrightText: 2014-2015 Teo Mrnjavac
+ * SPDX-FileCopyrightText: 2017-2019 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,6 +15,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#include "Label.h"
diff --git a/src/libcalamares/locale/Label.h b/src/libcalamares/locale/Label.h
index bd596f53d..fa07e3361 100644
--- a/src/libcalamares/locale/Label.h
+++ b/src/libcalamares/locale/Label.h
@@ -1,7 +1,7 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2014-2015, Teo Mrnjavac
- * Copyright 2017-2019, Adriaan de Groot
+ *
+ * SPDX-FileCopyrightText: 2014-2015 Teo Mrnjavac
+ * SPDX-FileCopyrightText: 2017-2019 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,6 +15,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#ifndef LOCALE_LABEL_H
diff --git a/src/libcalamares/locale/LabelModel.cpp b/src/libcalamares/locale/LabelModel.cpp
index da4e1a9f7..a7f14bf50 100644
--- a/src/libcalamares/locale/LabelModel.cpp
+++ b/src/libcalamares/locale/LabelModel.cpp
@@ -1,7 +1,7 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2019-2020 Adriaan de Groot
- * Copyright 2019, Camilo Higuita
+ *
+ * SPDX-FileCopyrightText: 2019 Camilo Higuita
+ * SPDX-FileCopyrightText: 2019-2020 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,6 +15,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#include "LabelModel.h"
diff --git a/src/libcalamares/locale/LabelModel.h b/src/libcalamares/locale/LabelModel.h
index 7bd1fad67..000bf4da7 100644
--- a/src/libcalamares/locale/LabelModel.h
+++ b/src/libcalamares/locale/LabelModel.h
@@ -1,7 +1,7 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2019-2020, Adriaan de Groot
- * Copyright 2019, Camilo Higuita
+ *
+ * SPDX-FileCopyrightText: 2019 Camilo Higuita
+ * SPDX-FileCopyrightText: 2019-2020 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,6 +15,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#ifndef LOCALE_LABELMODEL_H
diff --git a/src/libcalamares/locale/Lookup.cpp b/src/libcalamares/locale/Lookup.cpp
index baa3ce5b1..615783a87 100644
--- a/src/libcalamares/locale/Lookup.cpp
+++ b/src/libcalamares/locale/Lookup.cpp
@@ -1,6 +1,6 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2019, Adriaan de Groot
+ *
+ * SPDX-FileCopyrightText: 2019 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,6 +14,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#include "Lookup.h"
diff --git a/src/libcalamares/locale/Lookup.h b/src/libcalamares/locale/Lookup.h
index abcee0ed3..daa9c2987 100644
--- a/src/libcalamares/locale/Lookup.h
+++ b/src/libcalamares/locale/Lookup.h
@@ -1,6 +1,6 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2019, Adriaan de Groot
+ *
+ * SPDX-FileCopyrightText: 2019 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,6 +14,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#ifndef LOCALE_LOOKUP_H
diff --git a/src/libcalamares/locale/Tests.cpp b/src/libcalamares/locale/Tests.cpp
index 6cbe980be..6c5a508d7 100644
--- a/src/libcalamares/locale/Tests.cpp
+++ b/src/libcalamares/locale/Tests.cpp
@@ -1,6 +1,6 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2019, Adriaan de Groot
+ *
+ * SPDX-FileCopyrightText: 2019 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,6 +14,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#include "Tests.h"
diff --git a/src/libcalamares/locale/Tests.h b/src/libcalamares/locale/Tests.h
index 96ee48b0b..dfe85a865 100644
--- a/src/libcalamares/locale/Tests.h
+++ b/src/libcalamares/locale/Tests.h
@@ -1,6 +1,6 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2019, Adriaan de Groot
+ *
+ * SPDX-FileCopyrightText: 2019 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,6 +14,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#ifndef LIBCALAMARES_LOCALE_TESTS_H
diff --git a/src/libcalamares/locale/TimeZone.cpp b/src/libcalamares/locale/TimeZone.cpp
index e25cf2144..0c13a8c77 100644
--- a/src/libcalamares/locale/TimeZone.cpp
+++ b/src/libcalamares/locale/TimeZone.cpp
@@ -1,6 +1,6 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2019, Adriaan de Groot
+ *
+ * SPDX-FileCopyrightText: 2019 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,6 +14,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#include "TimeZone.h"
diff --git a/src/libcalamares/locale/TimeZone.h b/src/libcalamares/locale/TimeZone.h
index 5f1e19801..60900ef21 100644
--- a/src/libcalamares/locale/TimeZone.h
+++ b/src/libcalamares/locale/TimeZone.h
@@ -1,6 +1,6 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2019, Adriaan de Groot
+ *
+ * SPDX-FileCopyrightText: 2019 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,6 +14,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#ifndef LOCALE_TIMEZONE_H
diff --git a/src/libcalamares/locale/TranslatableConfiguration.cpp b/src/libcalamares/locale/TranslatableConfiguration.cpp
index 83199a4cc..fb9800d64 100644
--- a/src/libcalamares/locale/TranslatableConfiguration.cpp
+++ b/src/libcalamares/locale/TranslatableConfiguration.cpp
@@ -1,6 +1,6 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2019, Adriaan de Groot
+ *
+ * SPDX-FileCopyrightText: 2019 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,6 +14,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#include "TranslatableConfiguration.h"
diff --git a/src/libcalamares/locale/TranslatableConfiguration.h b/src/libcalamares/locale/TranslatableConfiguration.h
index d845569bc..fa6016731 100644
--- a/src/libcalamares/locale/TranslatableConfiguration.h
+++ b/src/libcalamares/locale/TranslatableConfiguration.h
@@ -1,6 +1,6 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2019, Adriaan de Groot
+ *
+ * SPDX-FileCopyrightText: 2019 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,6 +14,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#ifndef LOCALE_TRANSLATABLECONFIGURATION_H
diff --git a/src/libcalamares/locale/ZoneData_p.cxxtr b/src/libcalamares/locale/ZoneData_p.cxxtr
index b73d17ad3..4bfef3c0c 100644
--- a/src/libcalamares/locale/ZoneData_p.cxxtr
+++ b/src/libcalamares/locale/ZoneData_p.cxxtr
@@ -1,6 +1,26 @@
/* GENERATED FILE DO NOT EDIT
*
* === This file is part of Calamares - ===
+ *
+ * SPDX-FileCopyrightText: 2019 Adriaan de Groot
+ *
+ * Calamares is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Calamares is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
+ *
*
* This file is derived from zone.tab, which has its own copyright statement:
*
diff --git a/src/libcalamares/locale/cldr-extractor.py b/src/libcalamares/locale/cldr-extractor.py
index aae71ed1d..f69407257 100644
--- a/src/libcalamares/locale/cldr-extractor.py
+++ b/src/libcalamares/locale/cldr-extractor.py
@@ -1,6 +1,13 @@
#! /usr/bin/env python3
#
# === This file is part of Calamares - ===
+#
+# SPDX-FileCopyrightText: 2019 Adriaan de Groot
+#
+# SPDX-License-Identifier: BSD-2-Clause
+# License-Filename: LICENSES/BSD2
+#
+#
#
# Python3 script to scrape some data out of ICU CLDR supplemental data.
#
diff --git a/src/libcalamares/locale/zone-extractor.py b/src/libcalamares/locale/zone-extractor.py
index 92165d824..8ff1b5ef7 100644
--- a/src/libcalamares/locale/zone-extractor.py
+++ b/src/libcalamares/locale/zone-extractor.py
@@ -1,6 +1,12 @@
#! /usr/bin/env python3
#
# === This file is part of Calamares - ===
+#
+# SPDX-FileCopyrightText: 2019 Adriaan de Groot
+#
+# SPDX-License-Identifier: BSD-2-Clause
+# License-Filename: LICENSES/BSD2
+#
#
# Python3 script to scrape some data out of zoneinfo/zone.tab.
#
diff --git a/src/libcalamares/modulesystem/Actions.h b/src/libcalamares/modulesystem/Actions.h
index e1be0b867..0b7133f78 100644
--- a/src/libcalamares/modulesystem/Actions.h
+++ b/src/libcalamares/modulesystem/Actions.h
@@ -1,7 +1,7 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2014, Teo Mrnjavac
- * Copyright 2019, Adriaan de Groot
+ *
+ * SPDX-FileCopyrightText: 2014 Teo Mrnjavac
+ * SPDX-FileCopyrightText: 2019 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,6 +15,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#ifndef MODULESYSTEM_ACTIONS_H
diff --git a/src/libcalamares/modulesystem/Descriptor.h b/src/libcalamares/modulesystem/Descriptor.h
index 77d69caf3..b34f163ad 100644
--- a/src/libcalamares/modulesystem/Descriptor.h
+++ b/src/libcalamares/modulesystem/Descriptor.h
@@ -1,6 +1,6 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2020, Adriaan de Groot
+ *
+ * SPDX-FileCopyrightText: 2020 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,6 +14,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#ifndef MODULESYSTEM_DESCRIPTOR_H
diff --git a/src/libcalamares/modulesystem/InstanceKey.cpp b/src/libcalamares/modulesystem/InstanceKey.cpp
index cde921b40..82ccf7800 100644
--- a/src/libcalamares/modulesystem/InstanceKey.cpp
+++ b/src/libcalamares/modulesystem/InstanceKey.cpp
@@ -1,7 +1,7 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2014-2015, Teo Mrnjavac
- * Copyright 2018-2019, Adriaan de Groot
+ *
+ * SPDX-FileCopyrightText: 2014-2015 Teo Mrnjavac
+ * SPDX-FileCopyrightText: 2018-2019 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,6 +15,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#include "InstanceKey.h"
diff --git a/src/libcalamares/modulesystem/InstanceKey.h b/src/libcalamares/modulesystem/InstanceKey.h
index 724827330..c81d83a75 100644
--- a/src/libcalamares/modulesystem/InstanceKey.h
+++ b/src/libcalamares/modulesystem/InstanceKey.h
@@ -1,7 +1,7 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2014-2015, Teo Mrnjavac
- * Copyright 2018-2019, Adriaan de Groot
+ *
+ * SPDX-FileCopyrightText: 2014-2015 Teo Mrnjavac
+ * SPDX-FileCopyrightText: 2018-2019 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,6 +15,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#ifndef MODULESYSTEM_INSTANCEKEY_H
#define MODULESYSTEM_INSTANCEKEY_H
diff --git a/src/libcalamares/modulesystem/Module.cpp b/src/libcalamares/modulesystem/Module.cpp
index 9620299ec..407a10205 100644
--- a/src/libcalamares/modulesystem/Module.cpp
+++ b/src/libcalamares/modulesystem/Module.cpp
@@ -1,7 +1,7 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2014-2015, Teo Mrnjavac
- * Copyright 2017-2018, Adriaan de Groot
+ *
+ * SPDX-FileCopyrightText: 2014-2015 Teo Mrnjavac
+ * SPDX-FileCopyrightText: 2017-2018 Adriaan de Groot
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,6 +15,10 @@
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see .
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ * License-Filename: LICENSE
+ *
*/
#include "Module.h"
diff --git a/src/libcalamares/modulesystem/Module.h b/src/libcalamares/modulesystem/Module.h
index ba4533fae..81737cf8f 100644
--- a/src/libcalamares/modulesystem/Module.h
+++ b/src/libcalamares/modulesystem/Module.h
@@ -1,7 +1,7 @@
/* === This file is part of Calamares - ===
- *
- * Copyright 2014-2015, Teo Mrnjavac
- * Copyright 2017, Adriaan de Groot
+ *
+ * SPDX-FileCopyrightText: 2014-2015 Teo Mrnjavac