blob: 36fe5c44ac5ea7ff69646d3ad6d5505e19933d44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
diff --git a/Makefile b/Makefile
index 4d9785d..70579b0 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ UBINDIR ?= /usr/bin
DESKTOPDIR ?= /usr/share/applications
PIXMAPDIR ?= /usr/share/pixmaps
SISYPHUSDATADIR ?= /usr/share/sisyphus
-SISYPHUSPYLIBDIR ?= /usr/lib64/python3.4
+SISYPHUSPYLIBDIR ?= /usr/lib64/python3.5
POLKITDIR ?= /usr/share/polkit-1/actions
all:
diff --git a/src/backend/libsisyphus.py b/src/backend/libsisyphus.py
index 5f62119..4f7fda5 100755
--- a/src/backend/libsisyphus.py
+++ b/src/backend/libsisyphus.py
@@ -112,10 +112,24 @@ def sync_sisyphus_database_removable_packages_table():
@animation.wait('syncing remote databases')
def redcore_sync():
check_if_root()
- sync_redcore_portage_tree_and_desktop_overlay()
- sync_redcore_portage_config()
- sync_sisyphus_database_remote_packages_table()
- sync_sisyphus_database_removable_packages_table()
+
+ fetch_sisyphus_remote_packages_table_csv()
+ if filecmp.cmp(sisyphus_remote_csv_path_pre, sisyphus_remote_csv_path_post):
+ os.remove(sisyphus_remote_csv_path_post)
+ else:
+ sync_redcore_portage_tree_and_desktop_overlay()
+ sync_redcore_portage_config()
+ sync_sisyphus_database_remote_packages_table()
+ sync_sisyphus_database_removable_packages_table()
+
+ fetch_sisyphus_removable_packages_table_csv()
+ if filecmp.cmp(sisyphus_removable_csv_path_pre, sisyphus_removable_csv_path_post):
+ os.remove(sisyphus_removable_csv_path_post)
+ else:
+ sync_redcore_portage_tree_and_desktop_overlay()
+ sync_redcore_portage_config()
+ sync_sisyphus_database_remote_packages_table()
+ sync_sisyphus_database_removable_packages_table()
def generate_sisyphus_local_packages_table_csv_pre():
subprocess.check_call(['/usr/share/sisyphus/helpers/make_local_csv_pre']) # this is really hard to do in python, so we cheat with a bash helper script
diff --git a/src/frontend/gui/sisyphus-gui.py b/src/frontend/gui/sisyphus-gui.py
index d64f431..027c90c 100755
--- a/src/frontend/gui/sisyphus-gui.py
+++ b/src/frontend/gui/sisyphus-gui.py
@@ -172,7 +172,7 @@ def loadDatabase(self):
AND i.name = a.name
AND i.slot = a.slot
WHERE %s LIKE %s %s
- AND a.timestamp <> i.timestamp
+ AND a.timestamp > i.timestamp
''' % (Sisyphus.SEARCHFIELD, Sisyphus.SEARCHTERM, FILTEROUT)),
])
with sqlite3.connect(sisyphus_database_path) as db:
|