add support for 8/ in part downloader

Wed, 10 Jan 2018 22:54:29 +0200

author
Santeri Piippo
date
Wed, 10 Jan 2018 22:54:29 +0200
changeset 1227
1a26b6502a91
parent 1226
d1199d965235
child 1228
ecb6ea961b1e

add support for 8/ in part downloader

src/partdownloader.cpp file | annotate | diff | comparison | revisions
--- a/src/partdownloader.cpp	Wed Jan 10 22:54:09 2018 +0200
+++ b/src/partdownloader.cpp	Wed Jan 10 22:54:29 2018 +0200
@@ -125,9 +125,14 @@
 		dest.remove(0, 3);
 		dest.prepend("p/48/");
 	}
+	else if (isOneOf(dest.left(3), "8\\", "8/"))
+	{
+		dest.remove(0, 3);
+		dest.prepend("p/8/");
+	}
 
-	/* Try determine where to put this part. We have four directories:
-	   parts/, parts/s/, p/, and p/48/. If we haven't already specified
+	/* Try determine where to put this part. We have five directories:
+	   parts/, parts/s/, p/, p/8/ and p/48/. If we haven't already specified
 	   either parts/ or p/, we need to add it automatically. Part files
 	   are numbers wit a possible u prefix for parts with unknown number
 	   which can be followed by any of:

mercurial