[SCM] smplayer/master: Disable updates checking mechanism.
alessio at users.alioth.debian.org
alessio at users.alioth.debian.org
Wed Oct 9 10:47:48 UTC 2013
The following commit has been merged in the master branch:
commit be1e13b1c2088669fd408377845851aca6336dea
Author: Alessio Treglia <alessio at debian.org>
Date: Wed Oct 9 11:45:02 2013 +0100
Disable updates checking mechanism.
diff --git a/debian/patches/02-disable_updates.patch b/debian/patches/02-disable_updates.patch
new file mode 100644
index 0000000..ca2d4b9
--- /dev/null
+++ b/debian/patches/02-disable_updates.patch
@@ -0,0 +1,36 @@
+Description: Disable updates checking mechanism.
+Author: Alessio Treglia <alessio at debian.org>
+Forwarded: not-needed
+---
+ src/updatechecker.cpp | 20 +-------------------
+ 1 file changed, 1 insertion(+), 19 deletions(-)
+
+--- smplayer.orig/src/updatechecker.cpp
++++ smplayer/src/updatechecker.cpp
+@@ -47,25 +47,7 @@ void UpdateCheckerData::load(QSettings *
+
+ UpdateChecker::UpdateChecker(QObject * parent, UpdateCheckerData * data) : QObject(parent)
+ {
+- d = data;
+-
+- QDate now = QDate::currentDate();
+- //now = now.addDays(27);
+- int days = QDateTime(d->last_checked).daysTo(QDateTime(now));
+-
+- qDebug("UpdateChecker::UpdateChecker: enabled: %d", d->enabled);
+- qDebug("UpdateChecker::UpdateChecker: days_to_check: %d", d->days_to_check);
+- qDebug("UpdateChecker::UpdateChecker: days since last check: %d", days);
+-
+- if ((!d->enabled) || (days < d->days_to_check)) return;
+-
+- net_manager = new QNetworkAccessManager();
+- QUrl url("http://updates.smplayer.info/current_version");
+-
+- QNetworkRequest req(url);
+- req.setRawHeader("User-Agent", "SMPlayer");
+- QNetworkReply *reply = net_manager->get(req);
+- connect(reply, SIGNAL(finished()), this, SLOT(gotReply()));
++ return;
+ }
+
+ UpdateChecker::~UpdateChecker() {
diff --git a/debian/patches/series b/debian/patches/series
index fc7f32a..529624a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
01-add-mplayer2-detection.patch
+02-disable_updates.patch
--
smplayer packaging
More information about the pkg-multimedia-commits
mailing list