summaryrefslogtreecommitdiff
path: root/src/frontend/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/gui')
-rwxr-xr-xsrc/frontend/gui/accesories.py17
-rwxr-xr-xsrc/frontend/gui/development.py16
-rwxr-xr-xsrc/frontend/gui/graphics.py16
-rwxr-xr-xsrc/frontend/gui/internet.py3
-rwxr-xr-xsrc/frontend/gui/multimedia.py16
-rwxr-xr-xsrc/frontend/gui/system.py16
6 files changed, 78 insertions, 6 deletions
diff --git a/src/frontend/gui/accesories.py b/src/frontend/gui/accesories.py
index 32d3b68..253178b 100755
--- a/src/frontend/gui/accesories.py
+++ b/src/frontend/gui/accesories.py
@@ -37,7 +37,22 @@ class Accesories(QtWidgets.QMainWindow):
def load_packages(self):
with sqlite3.connect('/var/lib/sisyphus/db/sisyphus.db') as db:
cursor=db.cursor()
- cursor.execute('''SELECT * from remote_packages''')
+ cursor.execute('''SELECT
+ a.category AS cat,
+ a.name AS pn,
+ a.version AS av,
+ i.version AS iv,
+ a.description AS descr
+ FROM remote_packages AS a
+ LEFT JOIN local_packages AS i
+ ON a.category = i.category
+ AND a.name = i.name
+ AND a.slot = i.slot
+ WHERE a.name IN
+ ('ark',
+ 'featherpad',
+ 'kcalc')
+ ''')
rows = cursor.fetchall()
for row in rows:
diff --git a/src/frontend/gui/development.py b/src/frontend/gui/development.py
index ede83a4..2c3a66b 100755
--- a/src/frontend/gui/development.py
+++ b/src/frontend/gui/development.py
@@ -37,7 +37,21 @@ class Development(QtWidgets.QMainWindow):
def load_packages(self):
with sqlite3.connect('/var/lib/sisyphus/db/sisyphus.db') as db:
cursor=db.cursor()
- cursor.execute('''SELECT * from remote_packages''')
+ cursor.execute('''SELECT
+ a.category AS cat,
+ a.name AS pn,
+ a.version AS av,
+ i.version AS iv,
+ a.description AS descr
+ FROM remote_packages AS a
+ LEFT JOIN local_packages AS i
+ ON a.category = i.category
+ AND a.name = i.name
+ AND a.slot = i.slot
+ WHERE a.name IN
+ ('notepadqq',
+ 'qt-creator')
+ ''')
rows = cursor.fetchall()
for row in rows:
diff --git a/src/frontend/gui/graphics.py b/src/frontend/gui/graphics.py
index a50a169..4312070 100755
--- a/src/frontend/gui/graphics.py
+++ b/src/frontend/gui/graphics.py
@@ -37,7 +37,21 @@ class Graphics(QtWidgets.QMainWindow):
def load_packages(self):
with sqlite3.connect('/var/lib/sisyphus/db/sisyphus.db') as db:
cursor=db.cursor()
- cursor.execute('''SELECT * from remote_packages''')
+ cursor.execute('''SELECT
+ a.category AS cat,
+ a.name AS pn,
+ a.version AS av,
+ i.version AS iv,
+ a.description AS descr
+ FROM remote_packages AS a
+ LEFT JOIN local_packages AS i
+ ON a.category = i.category
+ AND a.name = i.name
+ AND a.slot = i.slot
+ WHERE a.name IN
+ ('gimp',
+ 'gimp-lqr')
+ ''')
rows = cursor.fetchall()
for row in rows:
diff --git a/src/frontend/gui/internet.py b/src/frontend/gui/internet.py
index e8ad1d3..fc25c45 100755
--- a/src/frontend/gui/internet.py
+++ b/src/frontend/gui/internet.py
@@ -86,7 +86,8 @@ class Internet(QtWidgets.QMainWindow):
'trojita',
'aircrack-ng',
'wavemon',
- 'messengerfordesktop')
+ 'messengerfordesktop',
+ 'opera-ffmpeg-codecs')
''')
rows = cursor.fetchall()
diff --git a/src/frontend/gui/multimedia.py b/src/frontend/gui/multimedia.py
index e4214f2..20bb40f 100755
--- a/src/frontend/gui/multimedia.py
+++ b/src/frontend/gui/multimedia.py
@@ -37,7 +37,21 @@ class Multimedia(QtWidgets.QMainWindow):
def load_packages(self):
with sqlite3.connect('/var/lib/sisyphus/db/sisyphus.db') as db:
cursor=db.cursor()
- cursor.execute('''SELECT * from remote_packages''')
+ cursor.execute('''SELECT
+ a.category AS cat,
+ a.name AS pn,
+ a.version AS av,
+ i.version AS iv,
+ a.description AS descr
+ FROM remote_packages AS a
+ LEFT JOIN local_packages AS i
+ ON a.category = i.category
+ AND a.name = i.name
+ AND a.slot = i.slot
+ WHERE a.name IN
+ ('mpv',
+ 'vlc')
+ ''')
rows = cursor.fetchall()
for row in rows:
diff --git a/src/frontend/gui/system.py b/src/frontend/gui/system.py
index f8cc428..d3ccbe9 100755
--- a/src/frontend/gui/system.py
+++ b/src/frontend/gui/system.py
@@ -37,7 +37,21 @@ class System(QtWidgets.QMainWindow):
def load_packages(self):
with sqlite3.connect('/var/lib/sisyphus/db/sisyphus.db') as db:
cursor=db.cursor()
- cursor.execute('''SELECT * from remote_packages''')
+ cursor.execute('''SELECT
+ a.category AS cat,
+ a.name AS pn,
+ a.version AS av,
+ i.version AS iv,
+ a.description AS descr
+ FROM remote_packages AS a
+ LEFT JOIN local_packages AS i
+ ON a.category = i.category
+ AND a.name = i.name
+ AND a.slot = i.slot
+ WHERE a.name IN
+ ('aqemu',
+ 'virtualbox')
+ ''')
rows = cursor.fetchall()
for row in rows: