Skip to content

Commit

Permalink
Hotfix
Browse files Browse the repository at this point in the history
Fixed default UDID, GetUDID() check and section names.
  • Loading branch information
PythEch committed May 7, 2014
1 parent ea4013c commit 7e04a0f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
12 changes: 7 additions & 5 deletions Cygnus/MainForm.APT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,14 @@ private static bool RemoteUriExists(Uri url)

private string GetUDID()
{
if (!this.txtUDID.Text.IsNullOrWhitespace() && this.txtUDID.Text.Length == 40)
if (!this.txtUDID.Text.Contains(' ') && this.txtUDID.Text.Length == 40)
{
return this.txtUDID.Text;
}
// else ...
//return "0000000000000000000000000000000000000000";
return "10ADED B4D455 C1A551C4L 1CE C01D DEB5"; // DEC1A551F1ED
return "10aded70015040b4d455c1a551c411cec01ddeb5";
//Loaded tools for badass classical ice cold debs
//This is a bit forced though
}

/// <summary>
Expand All @@ -263,7 +264,7 @@ private static void DownloadFile(Uri uri, Stream stream)
request.UserAgent = "Telesphoreo APT-HTTP/1.0.592";
////request.Headers.Add("X-Firmware", "7.0.2");
////request.Headers.Add("X-Machine", "iPhone6,2");
request.Headers.Add("X-Unique-ID", "0000000000000000000000000000000000000000");
request.Headers.Add("X-Unique-ID", "10aded70015040b4d455c1a551c411cec01ddeb5");

try
{
Expand Down Expand Up @@ -543,7 +544,8 @@ private static List<Package> SearchPackagesByName(string packageNameToSearch)
pack.Filename = value;
break;
case "Section":
pack.Section = value;
pack.Section = value.Replace('_', ' ');
// Weird section name choices... Sometimes the space is replaced with underscore instead
break;
case "Pre-Depends":
case "Depends":
Expand Down
14 changes: 7 additions & 7 deletions Cygnus/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ public partial class MainForm : Form
{"Administration", Properties.Resources.Administration},
{"Archiving", Properties.Resources.Archiving},
{"Books", Properties.Resources.Books},
{"Carrier_Bundles", Properties.Resources.Carrier_Bundles},
{"Data_Storage", Properties.Resources.Data_Storage},
{"Carrier Bundles", Properties.Resources.Carrier_Bundles},
{"Data Storage", Properties.Resources.Data_Storage},
{"Development", Properties.Resources.Development},
{"Dictionaries", Properties.Resources.Dictionaries},
{"Education", Properties.Resources.Education},
{"Entertainment", Properties.Resources.Entertainment},
{"Fonts", Properties.Resources.Fonts},
{"Games", Properties.Resources.Games},
{"Health_and_Fitness", Properties.Resources.Health_and_Fitness},
{"Health and Fitness", Properties.Resources.Health_and_Fitness},
{"Java", Properties.Resources.Java},
{"Keyboards", Properties.Resources.Keyboards},
{"Localization", Properties.Resources.Localization},
Expand All @@ -88,19 +88,19 @@ public partial class MainForm : Form
{"Ringtones", Properties.Resources.Ringtones},
{"Scripting", Properties.Resources.Scripting},
{"Security", Properties.Resources.Security},
{"Site-Specific_Apps", Properties.Resources.Site_Specific_Apps},
{"Site-Specific Apps", Properties.Resources.Site_Specific_Apps},
{"Social", Properties.Resources.Social},
{"Soundboards", Properties.Resources.Soundboards},
{"System", Properties.Resources.System},
{"Terminal_Support", Properties.Resources.Terminal_Support},
{"Text_Editors", Properties.Resources.Text_Editors},
{"Terminal Support", Properties.Resources.Terminal_Support},
{"Text Editors", Properties.Resources.Text_Editors},
{"Themes", Properties.Resources.Themes},
{"Toys", Properties.Resources.Toys},
{"Tweaks", Properties.Resources.Tweaks},
{"Utilities", Properties.Resources.Utilities},
{"Wallpaper", Properties.Resources.Wallpaper},
{"Widgets", Properties.Resources.Widgets},
{"X_Window", Properties.Resources.X_Window},
{"X Window", Properties.Resources.X_Window}
};

#endregion Fields
Expand Down
4 changes: 2 additions & 2 deletions Cygnus/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.5.3.0")]
[assembly: AssemblyFileVersion("0.5.3.0")]
[assembly: AssemblyVersion("0.5.4.0")]
[assembly: AssemblyFileVersion("0.5.4.0")]

This comment has been minimized.

Copy link
@PythEch

PythEch May 7, 2014

Author Owner

This is just wrong... I meant 0.5.3.3

0 comments on commit 7e04a0f

Please sign in to comment.