diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-03-21 23:39:09 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-03-21 23:39:09 +0000 |
commit | 2edb1e2396da9910b8dbcb426fccbe64f398a85d (patch) | |
tree | 4b7edd38798b612fe5ef3be68ec9648c55b48df6 /system/apk-tools/list.patch | |
parent | edffe262c383c979833766a85cd65b74fb5231fa (diff) | |
download | packages-2edb1e2396da9910b8dbcb426fccbe64f398a85d.tar.gz packages-2edb1e2396da9910b8dbcb426fccbe64f398a85d.tar.bz2 packages-2edb1e2396da9910b8dbcb426fccbe64f398a85d.tar.xz packages-2edb1e2396da9910b8dbcb426fccbe64f398a85d.zip |
system/apk-tools: fix orphan list functionality
Diffstat (limited to 'system/apk-tools/list.patch')
-rw-r--r-- | system/apk-tools/list.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/system/apk-tools/list.patch b/system/apk-tools/list.patch new file mode 100644 index 000000000..ea264e0fa --- /dev/null +++ b/system/apk-tools/list.patch @@ -0,0 +1,22 @@ +diff --git a/src/list.c b/src/list.c +index e285e3f..dcbaeea 100644 +--- a/src/list.c ++++ b/src/list.c +@@ -61,7 +61,7 @@ static int is_orphaned(const struct apk_name *name) + /* repo 1 is always installed-db, so if other bits are set it means the package is available somewhere + * (either cache or in a proper repo) + */ +- return (repos & ~BIT(1)) == 0; ++ return (repos & ~BIT(0)) == 0; + } + + /* returns the currently installed package if there is a newer package that satisfies `name` */ +@@ -144,7 +144,7 @@ static void filter_package(const struct apk_package *pkg, const struct list_ctx + if (ctx->orphaned && !is_orphaned(pkg->name)) + return; + +- if (ctx->available && pkg->repos == BIT(1)) ++ if (ctx->available && pkg->repos == BIT(0)) + return; + + if (ctx->upgradable && !is_upgradable(pkg->name, pkg)) |