X-Git-Url: https://git.librecmc.org/?p=oweals%2Fopkg-lede.git;a=blobdiff_plain;f=libopkg%2Fpkg.h;h=15f580cb872d4420a4a9981e626c4af362ed8e2d;hp=ad4bba5368bbaac2ba33831d35527bd67a24c8e4;hb=c723fb3996c89cd433d33fdb20c28527bc050c88;hpb=4ea955bc7e5575bc1d8b34c364591c47653f2cfd;ds=inline diff --git a/libopkg/pkg.h b/libopkg/pkg.h index ad4bba5..15f580c 100644 --- a/libopkg/pkg.h +++ b/libopkg/pkg.h @@ -171,15 +171,16 @@ struct pkg { installed_files list was being freed from an inner loop while still being used within an outer loop. */ int installed_files_ref_cnt; - int essential; int arch_priority; + + int essential:1; /* Adding this flag, to "force" opkg to choose a "provided_by_hand" package, if there are multiple choice */ - int provided_by_hand; + int provided_by_hand:1; /* this flag specifies whether the package was installed to satisfy another * package's dependancies */ - int auto_installed; - int is_upgrade; + int auto_installed:1; + int is_upgrade:1; }; pkg_t *pkg_new(void);