Skip to content

Commit 93dc9d4

Browse files
committed
Release prep
2 parents 5dec0ef + 3a96def commit 93dc9d4

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

CHANGELOG

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
0.4.1 (2024/08/18)
22
BugFix: Added C.UTF-8 default language set for executeCommand function.
3+
BugFix: Modified code to find pkg db in DragonFlyBSD.
4+
BugFix: Added reference to new LGPL v2.1 license.
35
Added support to NomadBSD.
46
Improvement: Show a "Collecting transaction data..." msg before presenting the transaction
57
dialog, as it can be quite slow on some systems.
@@ -10,7 +12,7 @@
1012
BugFix: Update FreeBSD pkg wiki site (thanks to eduardo).
1113
BugFix: Files tab expand all items by default.
1214
BugFix: Files tab was not being refreshed when switching to remote search.
13-
Updated license to LGPL 2.1.
15+
Updated license to LGPL v2.1.
1416
Show "Installed on" column while searching for remote pkgs.
1517
Now using the unified qt-sudo project (https://github.com/aarnt/qt-sudo) for privilege escalation.
1618

src/package.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,8 +1357,16 @@ bool Package::hasPkgNGDatabase()
13571357
}
13581358
else if (UnixCommand::getBSDFlavour() == ectn_DRAGONFLYBSD)
13591359
{
1360-
QFile f(ctn_PKGNG_DRAGONFLYBSD_CORE_DB_FILE);
1361-
answer = f.exists();
1360+
//Search for any repo-XYZ.sqlite
1361+
QDir d;
1362+
QStringList nameFilters;
1363+
d.setPath("/var/db/pkg");
1364+
nameFilters << "repo-*.sqlite";
1365+
QFileInfoList qfil = d.entryInfoList(nameFilters,QDir::Files);
1366+
answer = (qfil.size() > 0);
1367+
1368+
//QFile f(ctn_PKGNG_DRAGONFLYBSD_CORE_DB_FILE);
1369+
//answer = f.exists();
13621370
}
13631371
else if (UnixCommand::getBSDFlavour() == ectn_HARDENEDBSD)
13641372
{

0 commit comments

Comments
 (0)