Lots of changes here... - Removed code using RecursivExtractor due to bad usage of /tmp Note: the code that used RecursiveExtractor may not have been in the previous commit - Created _functioning_ implementation of DebUnpacker - Restructured Project layout. TODO: - Possibly rewrite how the DebUnpacker works to have the file contents part of an entry. - Further restructuring and refactoring to make the code a little neater. - Add code for the final unpack steps Un-XZ -> untar -> write to disk - Add code to install - Add code for modified post-install pre-remove etc.. This is kinda needed to ensure proper system integration of new packages.
23 lines
668 B
C#
23 lines
668 B
C#
namespace EdgeInstaller;
|
|
|
|
public sealed partial class Version : IEquatable<Version>
|
|
{
|
|
public override bool Equals(object? obj)
|
|
{
|
|
if (obj is null || !this.GetType().Equals(obj.GetType()))
|
|
{
|
|
return false;
|
|
}
|
|
|
|
return this.Equals(obj);
|
|
// NOTE: For the purposes of a version number same values == same version
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
return Major + Minor + Build + Patch + Subpatch;
|
|
// NOTE: For the purposes of a version number same values == same version
|
|
// That is why this "hash" code will collide given two "different" versions with the same values
|
|
}
|
|
}
|