Skip to content
Snippets Groups Projects
Commit 5c9f08b1 authored by guinux's avatar guinux
Browse files

fix #610

parent a13d9c5f
No related branches found
No related tags found
No related merge requests found
...@@ -940,7 +940,7 @@ namespace Pamac { ...@@ -940,7 +940,7 @@ namespace Pamac {
} }
// set out of date // set out of date
unowned Json.Node? out_node = json_object.get_member ("OutOfDate"); unowned Json.Node? out_node = json_object.get_member ("OutOfDate");
if (out_node != null) { if (!out_node.is_null ()) {
aur_pkg.outofdate = (uint64) out_node.get_int (); aur_pkg.outofdate = (uint64) out_node.get_int ();
} }
return aur_pkg; return aur_pkg;
...@@ -1639,12 +1639,12 @@ namespace Pamac { ...@@ -1639,12 +1639,12 @@ namespace Pamac {
aur_details.packagebase = json_object.get_string_member ("PackageBase"); aur_details.packagebase = json_object.get_string_member ("PackageBase");
// url can be null // url can be null
unowned Json.Node? node = json_object.get_member ("URL"); unowned Json.Node? node = json_object.get_member ("URL");
if (node != null) { if (!node.is_null ()) {
aur_details.url = node.get_string (); aur_details.url = node.get_string ();
} }
// maintainer can be null // maintainer can be null
node = json_object.get_member ("Maintainer"); node = json_object.get_member ("Maintainer");
if (node != null) { if (!node.is_null ()) {
aur_details.maintainer = node.get_string (); aur_details.maintainer = node.get_string ();
} }
// firstsubmitted // firstsubmitted
...@@ -1653,7 +1653,7 @@ namespace Pamac { ...@@ -1653,7 +1653,7 @@ namespace Pamac {
aur_details.lastmodified = (uint64) json_object.get_int_member ("LastModified"); aur_details.lastmodified = (uint64) json_object.get_int_member ("LastModified");
// outofdate can be null // outofdate can be null
node = json_object.get_member ("OutOfDate"); node = json_object.get_member ("OutOfDate");
if (node != null) { if (!node.is_null ()) {
aur_details.outofdate = (uint64) node.get_int (); aur_details.outofdate = (uint64) node.get_int ();
} }
//numvotes //numvotes
...@@ -1976,7 +1976,7 @@ namespace Pamac { ...@@ -1976,7 +1976,7 @@ namespace Pamac {
unowned string old_version = alpm_handle.localdb.get_pkg (name).version; unowned string old_version = alpm_handle.localdb.get_pkg (name).version;
if (Alpm.pkg_vercmp (new_version, old_version) == 1) { if (Alpm.pkg_vercmp (new_version, old_version) == 1) {
updates.append (initialise_aur_pkg (pkg_info)); updates.append (initialise_aur_pkg (pkg_info));
} else if (pkg_info.get_member ("OutOfDate") != null) { } else if (!pkg_info.get_member ("OutOfDate").is_null ()) {
// get out of date packages // get out of date packages
outofdate.append (initialise_aur_pkg (pkg_info)); outofdate.append (initialise_aur_pkg (pkg_info));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment