From f58bd996c7d4716af69b291ae06611d8ce616e03 Mon Sep 17 00:00:00 2001 From: Cody P Schafer Date: Wed, 19 Nov 2014 17:27:02 -0500 Subject: [PATCH] remove now unused patch --- ...hot-support-triples-lacking-a-vendor.patch | 29 ------------------- 1 file changed, 29 deletions(-) delete mode 100644 recipes/rust/files/0001-src-etc-snapshot-support-triples-lacking-a-vendor.patch diff --git a/recipes/rust/files/0001-src-etc-snapshot-support-triples-lacking-a-vendor.patch b/recipes/rust/files/0001-src-etc-snapshot-support-triples-lacking-a-vendor.patch deleted file mode 100644 index 1dcfbc8..0000000 --- a/recipes/rust/files/0001-src-etc-snapshot-support-triples-lacking-a-vendor.patch +++ /dev/null @@ -1,29 +0,0 @@ -From 7200c63876da23634fea0c0987e4f955ebd08baf Mon Sep 17 00:00:00 2001 -From: Cody P Schafer -Date: Thu, 13 Nov 2014 17:14:46 -0500 -Subject: [PATCH] src/etc/snapshot: support triples lacking a vendor - ---- - src/etc/snapshot.py | 6 +++++- - 1 file changed, 5 insertions(+), 1 deletion(-) - -diff --git a/src/etc/snapshot.py b/src/etc/snapshot.py -index e0610bf..85798da 100644 ---- a/src/etc/snapshot.py -+++ b/src/etc/snapshot.py -@@ -75,7 +75,11 @@ def full_snapshot_name(date, rev, platform, hsh): - - - def get_kernel(triple): -- os_name = triple.split('-')[2] -+ t=triple.split('-') -+ if len(t) == 2: -+ os_name = triple.split('-')[1] -+ else: -+ os_name = triple.split('-')[2] - if os_name == "windows": - return "winnt" - if os_name == "darwin": --- -2.1.3 -