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 732466 - Ship appdata test application
Ship appdata test application
Status: RESOLVED FIXED
Product: gnome-software
Classification: Applications
Component: General
3.12.x
Other All
: Normal normal
: ---
Assigned To: GNOME Software maintainer(s)
GNOME Software maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-06-30 09:48 UTC by Bastien Nocera
Modified: 2014-07-01 08:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bastien Nocera 2014-06-30 09:48:38 UTC
This would allow to easily test uninstalled app data files, without going through the gnome-software interface (and having to find the software in question deep inside the UI).

This would also make it faster to test whether screenshots are of the appropriate size, text is long enough, etc.
Comment 1 Richard Hughes 2014-07-01 08:15:11 UTC
I was working on this last night, and just committed this to AppStream-glib:

commit d69f250474974247eae07bbd351351c8dbd0e673
Author: Richard Hughes <richard@hughsie.com>
Date:   Tue Jul 1 09:11:50 2014 +0100

    Add AS_STORE_ADD_FLAG_PREFER_LOCAL to allow the client to prefer local files
    
    This allows an end application to use the local files rather than the AppStream
    metadata.
    
    This may be desired if testing the AppData file or viewing the screenshots.
    It will certainly be slower as more files have to be parsed, more packages
    resolved, and large screenshots will be downloaded just for thumbnails.
    
    This allows a test mode: https://bugzilla.gnome.org/show_bug.cgi?id=732466

I'll work on the gnome-software side this morning.
Comment 2 Richard Hughes 2014-07-01 08:49:17 UTC
commit b59375cd5bf75a3e5044647d4a74878f4315a800
Author: Richard Hughes <richard@hughsie.com>
Date:   Tue Jul 1 09:36:43 2014 +0100

    Add --prefer-local to prefer the local data to the distro AppStream metadata
    
    Users can also use GNOME_SOFTWARE_PREFER_LOCAL=1 in the environment settings.
    
    Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=732466

:100644 100644 0f6903b... 69d521b... M  src/gs-application.c
:100644 100644 c56f340... e9288fd... M  src/gs-cmd.c
:100644 100644 050daea... ae66a65... M  src/plugins/gs-plugin-appstream.c

commit 42925aa5a83c17338f669f56de5b6b12f0a8bb3a
Author: Richard Hughes <richard@hughsie.com>
Date:   Tue Jul 1 09:42:45 2014 +0100

    Always resize the screenshots to the required UI size
    
    This will look bad for non-standard screenshots, but non-padded images will
    only be loaded when using local files.
    
    Also, we'll be using the huge 'source' screenshots for the thumbnails, but
    that's probably okay.

:100644 100644 e2d84f7... 3b3a5f2... M  src/gs-app.c
:100644 100644 49739d4... c095588... M  src/gs-screenshot-image.c
:100644 100644 2174cfa... 3a296ae... M  src/gs-screenshot.c
:100644 100644 e9a37c7... 46aeea4... M  src/gs-screenshot.h
:100644 100644 5edef28... 3c8d184... M  src/gs-shell-details.c

commit da97892b43d726da9df2962d9dc401c50a7345d9
Author: Richard Hughes <richard@hughsie.com>
Date:   Tue Jul 1 09:41:12 2014 +0100

    trivial: Allow local files to contribute screenshots

:100644 100644 5722517... 2174cfa... M  src/gs-screenshot.c
:100644 100644 aba6854... 050daea... M  src/plugins/gs-plugin-appstream.c