forked from cromer/pamac-classic
fix download size not shown during updates
This commit is contained in:
parent
61654163b0
commit
3a9ee17692
@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Pamac\n"
|
"Project-Id-Version: Pamac\n"
|
||||||
"Report-Msgid-Bugs-To: cromer@cromnix.org\n"
|
"Report-Msgid-Bugs-To: cromer@cromnix.org\n"
|
||||||
"POT-Creation-Date: 2017-11-11 21:03-0300\n"
|
"POT-Creation-Date: 2017-11-11 21:27-0300\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
@ -633,6 +633,10 @@ namespace Pamac {
|
|||||||
if (alpm_pkg == null) {
|
if (alpm_pkg == null) {
|
||||||
alpm_pkg = get_syncpkg (pkgname);
|
alpm_pkg = get_syncpkg (pkgname);
|
||||||
}
|
}
|
||||||
|
unowned Alpm.Package? alpm_pkg_sync = get_syncpkg (alpm_pkg.name);
|
||||||
|
if (alpm_pkg_sync == null) {
|
||||||
|
alpm_pkg_sync = get_syncpkg (pkgname);
|
||||||
|
}
|
||||||
if (alpm_pkg != null) {
|
if (alpm_pkg != null) {
|
||||||
// name
|
// name
|
||||||
name = alpm_pkg.name;
|
name = alpm_pkg.name;
|
||||||
@ -656,7 +660,11 @@ namespace Pamac {
|
|||||||
list.next ();
|
list.next ();
|
||||||
}
|
}
|
||||||
// download size
|
// download size
|
||||||
downloadsize = alpm_pkg.download_size.to_string ();
|
if (alpm_pkg_sync != null) {
|
||||||
|
downloadsize = alpm_pkg_sync.download_size.to_string ();
|
||||||
|
} else {
|
||||||
|
downloadsize = alpm_pkg.download_size.to_string ();
|
||||||
|
}
|
||||||
// installed size
|
// installed size
|
||||||
installsize = alpm_pkg.isize.to_string ();
|
installsize = alpm_pkg.isize.to_string ();
|
||||||
// licenses
|
// licenses
|
||||||
|
Loading…
Reference in New Issue
Block a user