checkpoint for real

This commit is contained in:
2020-04-27 12:34:56 -04:00
parent 6ed92261ec
commit c1618deb83
31 changed files with 1429 additions and 626 deletions

19
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));
}
}
}