|
|
[-]
[+]
|
Changed |
_service:tar_git:install-history-0.9.18.tar.gz/qml/pages/MainPage.qml
^
|
@@ -383,7 +383,10 @@
/* ----- functions ----- */
- /* load zypper history log file */
+ /* load zypper history log file
+ * @param fn url file to load from
+ * @param filter filter callback
+ */
function getHistory(fn,filter) {
console.assert((typeof fn !== "undefined"), "Called without filename");
console.info("Loading history from " + fn);
@@ -414,8 +417,9 @@
return (re.test(data)) ? true : false;
}
function filterLocal(data) {
- const re = /\|PK_TMP_DIR\|/ // pkcon
- const re = /\|_tmpRPMcache_\|/ // zypper
+ //const re = /\|PK_TMP_DIR\|/ // pkcon
+ //const re = /\|_tmpRPMcache_\|/ // zypper
+ const re = /\|(PK_TMP_DIR|_tmpRPMcache_)\|/ // both
return (!re.test(data)) ? true : false;
}
@@ -472,10 +476,17 @@
*/
repo = line[6];
reponame = repo;
+
+ /*
+ * this may look like it should be a switch...case block, but actually no.
+ */
+
+ // local repo:
if ( (repo === "PK_TMP_DIR") || (repo === "_tmpRPMcache_") ) {
repo=qsTr("local", "short name for the 'local' repo");
reponame=qsTr("Local Installs", "name for the 'local' repo");
repotype="local";
+ // all the Jolla repos:
} else if (repo === "store") {
reponame=qsTr("Jolla Store", "name for the jolla store repo");
repotype="jolla";
@@ -503,16 +514,20 @@
} else if (repo === "adaptation1") {
reponame=qsTr("Device Adaptation", "name for the jolla adaptation1 repo");
repotype="jolla";
+ // Storeman:
} else if ( (repo === "mentaljam-obs") || (repo === "harbour-storeman-obs") ) {
reponame=qsTr("Storeman", "name for the storeman repo");
+ // Chum:
} else if (repo === "sailfishos-chum") {
reponame=qsTr("SailfishOS:Chum", "name for the chum repo");
repotype="chum";
} else if (repo === "sailfishos-chum-testing") {
reponame=qsTr("SailfishOS:Chum Testing", "name for the chum testing repo");
repotype="chum";
+ // MLS:
} else if (repo === "nubecula-mls-offline-repo") {
reponame=qsTr("MLS", "name for the Nubecula Offline MLS repo");
+ // OpenRepos:
} else if ( isOpenrepos.test(repo) ) {
reponame= qsTr("OpenRepos: %1", "prefix for a openrepos repo").arg(repo.replace("openrepos-", ""));
repotype="openrepos";
|
@@ -1,6 +1,6 @@
Name: install-history
Summary: Shows when packages have been installed or uninstalled
-Version: 0.9.17
+Version: 0.9.18
Release: 1
Group: Applications
License: Apache 2.0
|