File tree Expand file tree Collapse file tree 2 files changed +31
-5
lines changed
Expand file tree Collapse file tree 2 files changed +31
-5
lines changed Original file line number Diff line number Diff line change 11{
22 "app-id" : " dev.Cogitri.Health" ,
33 "runtime" : " org.gnome.Platform" ,
4- "runtime-version" : " 47 " ,
4+ "runtime-version" : " 48 " ,
55 "sdk" : " org.gnome.Sdk" ,
66 "sdk-extensions" : [
77 " org.freedesktop.Sdk.Extension.rust-stable" ,
8- " org.freedesktop.Sdk.Extension.llvm19 "
8+ " org.freedesktop.Sdk.Extension.llvm20 "
99 ],
1010 "command" : " dev.Cogitri.Health" ,
1111 "finish-args" : [
3232 " /bin/sassc"
3333 ],
3434 "build-options" : {
35- "append-path" : " /usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/llvm19 /bin" ,
35+ "append-path" : " /usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/llvm20 /bin" ,
3636 "env" : {
3737 "CARGO_REGISTRIES_CRATES_IO_PROTOCOL" : " sparse" ,
3838 "CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER" : " clang" ,
5353 "sources" : [
5454 {
5555 "type" : " git" ,
56- "url" : " https://gitlab.gnome.org/jwestman /blueprint-compiler" ,
57- "commit" : " 2a39a16391122af2f3d812e478c1c1398c98b972 "
56+ "url" : " https://gitlab.gnome.org/GNOME /blueprint-compiler" ,
57+ "commit" : " 04ef0944db56ab01307a29aaa7303df6067cb3c0 "
5858 }
5959 ]
6060 },
7070 {
7171 "type" : " patch" ,
7272 "path" : " fix_appdata.patch"
73+ },
74+ {
75+ "type" : " patch" ,
76+ "path" : " fix_tracker_db_update.patch"
7377 }
7478 ]
7579 }
Original file line number Diff line number Diff line change 1+ diff --git a/src/core/database.rs b/src/core/database.rs
2+ index a82b755..f81f6e7 100644
3+ --- a/src/core/database.rs
4+ +++ b/src/core/database.rs
5+ @@ -890,7 +890,7 @@ impl Database {
6+ /// An error if querying the DB goes wrong.
7+ pub async fn update_version(&self) -> Result<()> {
8+ let connection = self.imp().connection.get().unwrap();
9+ - let resource = tracker::Resource::new(Some("health"));
10+ + let resource = tracker::Resource::new(Some("health:Version"));
11+ resource.set_int64("health:version", DB_VERSION);
12+ let v = connection.update_resource(None, &resource, None::<&gio::Cancellable>);
13+ if let Err(e) = v {
14+ @@ -922,7 +922,7 @@ impl Database {
15+ /// An error if querying the DB goes wrong.
16+ pub async fn create_version(&self) -> Result<()> {
17+ let imp = self.imp();
18+ - let resource = tracker::Resource::new(Some("health"));
19+ + let resource = tracker::Resource::new(Some("health:Version"));
20+ resource.set_uri("rdf:type", "health:Version");
21+ resource.set_int64("health:version", DB_VERSION);
22+ let connection = imp.connection.get().unwrap();
You can’t perform that action at this time.
0 commit comments