Skip to content

Commit

Permalink
- Version 0.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
aarnt committed Dec 24, 2023
1 parent caa2e27 commit 794e1c9
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 23 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
0.3.3 (2023/12/24)
BugFix: Notifier was not syncing repos (thanks to dexgs).
BugFix: Check updates was printing a buggy string.
Synched octoxbps-sudo code with lxqt-sudo version 1.4.0.

0.3.2 (2023/09/26)
Make code compatible with Qt5/Qt6 libs.
Updated project site to tintaescura.com.
Expand Down
2 changes: 1 addition & 1 deletion src/strconstants.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ QString StrConstants::getApplicationName(){
}

QString StrConstants::getApplicationVersion(){
return "0.3.2";
return "0.3.3";
}

QString StrConstants::getQtVersion(){
Expand Down
19 changes: 8 additions & 11 deletions src/xbpsexec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ void XBPSExec::parseXBPSProcessOutput(QString output)

if(!m_textPrinted.contains(target))
{
prepareTextToPrint("Updating repository " + target); //, ectn_DONT_TREAT_URL_LINK);
prepareTextToPrint("Updating repository " + target, ectn_TREAT_STRING, ectn_DONT_TREAT_URL_LINK);
}

return;
Expand Down Expand Up @@ -294,15 +294,6 @@ void XBPSExec::parseXBPSProcessOutput(QString output)
msg.remove(QRegularExpression("qt.qpa.xcb.+"));
msg.remove(QRegularExpression("qt5ct: using qt5ct plugin"));

//Gksu buggy strings
/*msg.remove(QRegularExpression("you should recompile libgtop and dependent applications.+"));
msg.remove(QRegularExpression("This libgtop was compiled on.+"));
msg.remove(QRegularExpression("If you see strange problems caused by it.+"));
msg.remove(QRegularExpression("LibGTop-Server.+"));
msg.remove(QRegularExpression("received eof.+"));
msg.remove(QRegularExpression("pid [0-9]+"));
msg = msg.trimmed();*/

QString order;
int ini = msg.indexOf(QRegularExpression("\\(\\s{0,3}[0-9]{1,4}/[0-9]{1,4}\\) "));

Expand Down Expand Up @@ -410,7 +401,13 @@ void XBPSExec::prepareTextToPrint(QString str, TreatString ts, TreatURLLinks tl)
newStr.contains(QRegularExpression("Running")) ||
newStr.contains(QRegularExpression("Looking")))
{
newStr = "<b><font color=\"#4BC413\">" + newStr + "</font></b>"; //GREEN
if (newStr.startsWith("Updating repository", Qt::CaseInsensitive))
{
//Updating repository
QString target = newStr.mid(20);
newStr = "<b><font color=\"#4BC413\">Updating repository</font></b> " + target; //GREEN
}
else newStr = "<b><font color=\"#4BC413\">" + newStr + "</font></b>"; //GREEN
}
else if (newStr.contains(QRegularExpression("warning")) ||
newStr.contains(QRegularExpression("downgrading")) ||
Expand Down
8 changes: 4 additions & 4 deletions sudo/translations/lxqt-sudo_fi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<message>
<location filename="../passworddialog.ui" line="109"/>
<source>A program LXQt sudo calls in background to elevate privileges.</source>
<translation>Ohjelma jota LXQt sudo kutsuu taustalla käyttöoikeuksien kohottamiseksi.</translation>
<translation>Ohjelma, jota LXQt sudo kutsuu taustalla käyttöoikeuksien kohottamiseksi.</translation>
</message>
<message>
<location filename="../passworddialog.ui" line="119"/>
Expand Down Expand Up @@ -72,18 +72,18 @@ Arguments:
arguments Optional arguments for command.

</source>
<translation>Käyttö: %1 valitsin [komento [argumentit...]]
<translation>Käyttö: %1 valitsin [komento [parametrit...]]

%2/%3 GUI front-end

Argumentit:
Parametrit:
Valitsimet:
-h|--help Näyttää tämän ohjeen.
-v|--version Näyttää versiotiedot.
-s|--su Käytä %3(1) back-endinä.
-d|--sudo Käytä %2(8) back-endinä.
command Komento joka suoritetaan.
arguments Valinnaiset argumentit komennolle.
arguments Valinnaiset parametrit komennolle.

</translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion sudo/translations/lxqt-sudo_it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<message>
<location filename="../passworddialog.ui" line="109"/>
<source>A program LXQt sudo calls in background to elevate privileges.</source>
<translation type="unfinished">Chiamata in background da un programma LXQt sudo per elevare i privilegi.</translation>
<translation>Chiamata in background da un programma a LXQt sudo per elevare i privilegi.</translation>
</message>
<message>
<location filename="../passworddialog.ui" line="119"/>
Expand Down
12 changes: 6 additions & 6 deletions sudo/translations/lxqt-sudo_lt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<message>
<location filename="../passworddialog.ui" line="106"/>
<source>LXQt sudo backend</source>
<translation>LXQt sudo vidinė pusė</translation>
<translation>LXQt sudo vidinė sąsaja</translation>
</message>
<message>
<location filename="../passworddialog.ui" line="109"/>
Expand Down Expand Up @@ -80,8 +80,8 @@ Argumentai:
parametras:
-h|--help Išvesti šią pagalbą.
-v|--version Išvesti versijos informacija.
-s|--su Naudoti %3(1) kaip vidinę pusę.
-d|--sudo Naudoti %2(8) kaip vidinę pusę.
-s|--su Naudoti %3(1) kaip vidinę sąsają.
-d|--sudo Naudoti %2(8) kaip vidinę sąsają.
command Komanda, kurią vykdyti.
arguments Pasirinktini argumentai komandai.

Expand All @@ -105,7 +105,7 @@ Argumentai:
<message>
<location filename="../sudo.cpp" line="202"/>
<source>%1: no backend chosen!</source>
<translation>%1: nepasirinkta vidinė pusė!</translation>
<translation>%1: nepasirinkta vidinė sąsaja!</translation>
</message>
<message>
<location filename="../sudo.cpp" line="219"/>
Expand Down Expand Up @@ -139,14 +139,14 @@ Argumentai:
<location filename="../sudo.cpp" line="314"/>
<source>%1: Failed to exec &apos;%2&apos;: %3
</source>
<translation>%1: Nepavyko įvykdyti &quot;%2&quot;: %3
<translation>%1: Nepavyko įvykdyti „%2“: %3
</translation>
</message>
<message>
<location filename="../sudo.cpp" line="376"/>
<source>Child &apos;%1&apos; process failed!
%2</source>
<translation>Vyksnis &quot;%1&quot; nepavyko!
<translation>Vyksnis „%1“ patyrė nesėkmę!
%2</translation>
</message>
</context>
Expand Down

0 comments on commit 794e1c9

Please sign in to comment.