Skip to content

Commit

Permalink
Use https for downloading from mxrepo server; clarify error message
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianTM committed Oct 18, 2024
1 parent 9406242 commit 3745499
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
mx-packageinstaller (24.10) mx; urgency=medium

* Fix: use https for downloading from mxrepo server
* Clarify error message

-- Adrian <[email protected]> Fri, 18 Oct 2024 10:06:18 -0400

mx-packageinstaller (24.9) mx; urgency=medium

* Fix: packages with no description were not listed as installed
Expand Down
4 changes: 2 additions & 2 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1524,7 +1524,7 @@ bool MainWindow::downloadFile(const QString &url, QFile &file)
if (reply->error() != QNetworkReply::NoError) {
QMessageBox::warning(
this, tr("Error"),
tr("There was an error writing file: %1. Please check if you have enough free space on your drive")
tr("There was an error downloading or writing the file: %1. Please check your internet connection and free space on your drive")
.arg(file.fileName()));
qDebug() << "There was an error downloading the file:" << url << "Error:" << reply->errorString();
file.remove();
Expand Down Expand Up @@ -1619,7 +1619,7 @@ bool MainWindow::downloadPackageList(bool force_download)
}

QFile file(tmp_dir.path() + "/mxPackages.gz");
QString url {"http://mxrepo.com/mx/testrepo/dists/"};
QString url {"https://mxrepo.com/mx/testrepo/dists/"};
if (!cmd.run("apt-get update --print-uris | tac | grep -m1 -oP 'https?://.*/mx/testrepo/dists/(?="
+ ver_name + "/test/)'")) {
cmd.run("apt-get update --print-uris | tac | grep -m1 -oE 'https?://.*/mx/repo/dists/" + ver_name
Expand Down

0 comments on commit 3745499

Please sign in to comment.