checkpoint
This commit is contained in:
19
Alpm/CachePackage.cs
Normal file
19
Alpm/CachePackage.cs
Normal 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));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user