checkpoint

This commit is contained in:
2020-04-29 13:10:17 -04:00
parent c1618deb83
commit 64f7dd4b7d
54 changed files with 294 additions and 263 deletions

19
Alpm/CachePackage.cs Normal file
View File

@@ -0,0 +1,19 @@
namespace Foodsoft.Alpm
{
public class CachePackage : Package
{
// ReSharper disable once SuggestBaseTypeForParameter
internal CachePackage(SafeCachePackageHandle handle, Database db) : base(handle)
{
DB = db;
}
public override Database? DB { get; }
public void SetInstallReason(InstallReason reason)
{
if (alpm.alpm_pkg_set_reason(Handle, reason) != 0)
throw new Exception(alpm.alpm_errno(((SafeCachePackageHandle) Handle).SafeAlpmHandle));
}
}
}