Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54e41448 authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

fix sources downloading issue. The yaml lookup was one node to high in the yaml tree

parent 392f7342
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -62,8 +62,19 @@ public class DeviceHelper {
    }
    
    
    /**
     * Get data relatives to sources to download from config file
     * @param adbDevice
     * @return
     * @throws IOException
     * @throws ParseException
     * @throws ClassCastException
     * 
     * todo: definitively need  more tests 
     */
    public static HashMap<String, String> getSourcesToDownload(String adbDevice) throws IOException,ParseException, ClassCastException{
        return ConfigParser.parseSourcesToDownload(loadYaml(adbDevice+"_fs.yml"));

        return ConfigParser.parseSourcesToDownload( (HashMap) loadYaml(adbDevice+"_fs.yml").get("sources") );
    }