checkpoint

This commit is contained in:
2020-04-30 20:40:52 -04:00
parent 9aa367e9f5
commit abba062f4f
28 changed files with 615 additions and 544 deletions

View File

@@ -27,7 +27,8 @@ namespace Foodsoft.Alpm
if (!release) throw new ObjectDisposedException(handle.GetType().FullName);
refs[pkgPtr] = pkg;
listPtr = alpm.alpm_list_add(listPtr, handle.DangerousGetHandle());
if (alpm.alpm_list_append(ref listPtr, handle.DangerousGetHandle()) == IntPtr.Zero)
throw new AlpmException(Error.Memory);
}
var foundPtr = alpm.alpm_find_satisfier(listPtr, depString);