Checkpoint
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user