diff options
author | Richard Hughes <richard@hughsie.com> | 2016-06-10 09:22:25 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-06-10 09:22:27 +0100 |
commit | c0c567b1cbf292b1f03efc610a77d46788f63e06 (patch) | |
tree | e9e5c204f5437e35dcdd68c569da300427f1e91a | |
parent | 3dd32bffe47c978b23fb7289d9862fb74c7bf50f (diff) | |
download | appstream-glib-c0c567b1cbf292b1f03efc610a77d46788f63e06.tar.gz |
trivial: Fix make distcheck
The ever helpful 'make' copies the symlink target to the build directory,
rather than the symlink itself. This breaks the check which only loads the
origin and prefix for files detected as symlinks.
-rw-r--r-- | libappstream-glib/as-self-test.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libappstream-glib/as-self-test.c b/libappstream-glib/as-self-test.c index ee02369..86e83af 100644 --- a/libappstream-glib/as-self-test.c +++ b/libappstream-glib/as-self-test.c @@ -2941,6 +2941,10 @@ as_test_store_flatpak_func (void) store = as_store_new (); filename_root = as_test_get_filename ("."); filename = g_build_filename (filename_root, "flatpak_remote-name.xml", NULL); + if (!g_file_test (filename, G_FILE_TEST_IS_SYMLINK)) { + g_debug ("not doing symlink test in distcheck as regular file"); + return; + } file = g_file_new_for_path (filename); ret = as_store_from_file (store, file, NULL, NULL, &error); g_assert_no_error (error); |