Checkpoint

This commit is contained in:
2020-05-01 05:08:04 -04:00
parent abba062f4f
commit 1a394ddb31
20 changed files with 239 additions and 102 deletions

View File

@@ -5,10 +5,7 @@ namespace Foodsoft.Alpm
{
public abstract class Package : IPackageData
{
internal Package(SafePackageHandle handle)
{
Handle = handle;
}
internal Package(SafePackageHandle handle) => Handle = handle;
internal SafePackageHandle Handle { get; }
@@ -57,24 +54,15 @@ namespace Foodsoft.Alpm
public virtual Database? DB => null;
public void Dispose()
{
Handle.Dispose();
}
public void Dispose() => Handle.Dispose();
public IEnumerable<Package> ComputeRequiredBy()
{
throw new NotImplementedException();
}
public IEnumerable<Package> ComputeRequiredBy() => throw new NotImplementedException();
public IEnumerable<Package> ComputeOptionalFor()
{
throw new NotImplementedException();
}
public static int VersionCompare(string v1, string v2)
{
return alpm.alpm_pkg_vercmp(v1, v2);
}
public static int VersionCompare(string v1, string v2) => alpm.alpm_pkg_vercmp(v1, v2);
}
}