Browse Source

fix download size not shown during updates

tags/v6.6.1
Chris Cromer 2 years ago
parent
commit
3a9ee17692
2 changed files with 10 additions and 2 deletions
  1. +1
    -1
      po/pamac.pot
  2. +9
    -1
      src/pamac-user-daemon/user_daemon.vala

+ 1
- 1
po/pamac.pot View File

@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Pamac\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"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

+ 9
- 1
src/pamac-user-daemon/user_daemon.vala View File

@@ -633,6 +633,10 @@ namespace Pamac {
if (alpm_pkg == null) {
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) {
// name
name = alpm_pkg.name;
@@ -656,7 +660,11 @@ namespace Pamac {
list.next ();
}
// 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
installsize = alpm_pkg.isize.to_string ();
// licenses

Loading…
Cancel
Save