File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
app/src/processing/app/packages Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,8 @@ private static Library createLibrary(File libFolder) throws IOException {
6565
6666 // Compatibility with 1.5 rev.1 libraries:
6767 // "email" field changed to "maintainer"
68- if (!properties .containsKey ("maintainer" ))
68+ if (!properties .containsKey ("maintainer" ) &&
69+ properties .containsKey ("email" ))
6970 properties .put ("maintainer" , properties .get ("email" ));
7071
7172 // Compatibility with 1.5 rev.1 libraries:
@@ -121,8 +122,11 @@ private static Library createLibrary(File libFolder) throws IOException {
121122 String category = properties .get ("category" );
122123 if (category == null )
123124 category = "Uncategorized" ;
124- if (!CATEGORIES .contains (category ))
125+ if (!CATEGORIES .contains (category )) {
125126 category = "Uncategorized" ;
127+ System .out .println ("WARNING: Category '" + category + "' in library " +
128+ properties .get ("name" ) + " is not valid. Setting to 'Uncategorized'" );
129+ }
126130
127131 String license = properties .get ("license" );
128132 if (license == null )
You can’t perform that action at this time.
0 commit comments