After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 788790 - util: Micro-simplification when building the user's package cache
util: Micro-simplification when building the user's package cache
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: --
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2017-10-10 18:19 UTC by Debarshi Ray
Modified: 2017-10-11 11:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
util: Simplify code (777 bytes, patch)
2017-10-10 18:20 UTC, Debarshi Ray
committed Details | Review

Description Debarshi Ray 2017-10-10 18:19:33 UTC
The get_user_pkgcache function already supports an optional sub-cache name. Let's just use that instead of building the path by hand.
Comment 1 Debarshi Ray 2017-10-10 18:20:21 UTC
Created attachment 361264 [details] [review]
util: Simplify code
Comment 2 Felipe Borges 2017-10-11 11:19:49 UTC
Review of attachment 361264 [details] [review]:

sure!
Comment 3 Debarshi Ray 2017-10-11 11:39:22 UTC
Comment on attachment 361264 [details] [review]
util: Simplify code

Pushed to master.