Diff of /distrolst.cpp [24ecbe] .. [0559f2]  Maximize  Restore

Switch to side-by-side view

--- a/distrolst.cpp
+++ b/distrolst.cpp
@@ -11,37 +11,26 @@
 #ifdef CLONEZILLA
 if (nameDistro.startsWith("clonezilla_live"))
 {
-	printf("download clonezilla??\n");
+	//printf("download clonezilla??\n");
+	QString iso_relname = QString("clonezilla-live-%1.iso").arg(relname);
 	downloadfile(QString("http://prdownloads.sourceforge.net/clonezilla/clonezilla-live-%1.iso").arg(relname), isotmpf);
-	if (nameDistro == "clonezilla_live_stable")
-	    checkisofile(QString("http://free.nchc.org.tw/clonezilla-live/stable/MD5SUMS"), isotmpf, QString("clonezilla-live-%1.iso").arg(relname));
-	else if (nameDistro == "clonezilla_live_testing")
-	    checkisofile(QString("http://free.nchc.org.tw/clonezilla-live/testing/MD5SUMS"), isotmpf, QString("clonezilla-live-%1.iso").arg(relname));
-	else if (nameDistro == "clonezilla_live_alternative")
-	    checkisofile(QString("http://free.nchc.org.tw/clonezilla-live/alternative/stable/MD5SUMS"), isotmpf, QString("clonezilla-live-%1.iso").arg(relname));
-	else if (nameDistro == "clonezilla_live_alternative_testing")
-	    checkisofile(QString("http://free.nchc.org.tw/clonezilla-live/alternative/testing/MD5SUMS"), isotmpf, QString("clonezilla-live-%1.iso").arg(relname));
-
+	checkisofile(iso_relname_md5, isotmpf, iso_relname);
 	extractiso(isotmpf, targetPath);
 }
 
 if (nameDistro.startsWith("gparted-live"))
 {
 	downloadfile(QString("http://prdownloads.sourceforge.net/gparted/gparted-live-%1.iso").arg(relname), isotmpf);
-	if (nameDistro == "gparted-live-stable")
-	    checkisofile(QString("http://free.nchc.org.tw/gparted-live/stable/MD5SUMS"), isotmpf, QString("gparted-live-%1.iso").arg(relname));
-	else if (nameDistro == "gparted-live-testing")
-	    checkisofile(QString("http://free.nchc.org.tw/gparted-live/testing/MD5SUMS"), isotmpf, QString("gparted-live-%1.iso").arg(relname));
+	QString iso_relname = QString("gparted-live-%1.iso").arg(relname);
+	checkisofile(iso_relname_md5, isotmpf, iso_relname);
 	extractiso(isotmpf, targetPath);
 }
 
 if (nameDistro.startsWith("drbl_live"))
 {
 	downloadfile(QString("http://prdownloads.sourceforge.net/drbl/drbl-live-xfce-%1.iso").arg(relname), isotmpf);
-	if (nameDistro == "drbl_live_stable")
-	    checkisofile(QString("http://free.nchc.org.tw/drbl-live/stable/MD5SUMS"), isotmpf, QString("drbl-live-xfce-%1.iso").arg(relname));
-	else if (nameDistro == "drbl_live_testing")
-	    checkisofile(QString("http://free.nchc.org.tw/drbl-live/testing/MD5SUMS"), isotmpf, QString("gparted-live-xfce-%1.iso").arg(relname));
+	QString iso_relname = QString("drbl-live-xfce-%1.iso").arg(relname);
+	checkisofile(iso_relname_md5, isotmpf, iso_relname);
 	extractiso(isotmpf, targetPath);
 }