]> git.draconx.ca Git - upkg.git/blobdiff - src/uobject/package.c
package: Make the VFS directly open the package file.
[upkg.git] / src / uobject / package.c
index af4ebb3f929cd82c7f6441f9bc8f8d78029fcd06..2da23b3fc63383e781523cc1e8604e10c4890553 100644 (file)
@@ -87,15 +87,9 @@ static gboolean u_pkg_load(GTypeModule *m)
 {
        struct upkg_priv *priv = U_PKG_GET_PRIV(m);
        int (*init_func)(GTypeModule *);
-       const char *file;
 
-       file = u_pkg_vfs_lookup(m->name);
-       if (file) {
-               U_PKG(m)->pkg = upkg_fopen(file);
-               if (!U_PKG(m)->pkg) {
-                       return FALSE;
-               }
-       }
+       /* Ignore failure here until we get rid of native-only packages. */
+       U_PKG(m)->pkg = u_pkg_vfs_open_by_name(m->name);
 
        priv->native = lt_dlopenext(m->name);
        if (priv->native) {