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

Commit ca11f469 authored by Dongcheol Shin's avatar Dongcheol Shin Committed by android-build-merger
Browse files

Merge "Support importing property file with expanded name" into qt-dev

am: fa94b8f9

Change-Id: Iff4adad019e0f919536d1cce0ed55d536ea65e4e
parents cf643b11 fa94b8f9
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -642,8 +642,14 @@ static void LoadProperties(char* data, const char* filter, const char* filename,
                while (isspace(*key)) key++;
            }

            load_properties_from_file(fn, key, properties);
            std::string raw_filename(fn);
            std::string expanded_filename;
            if (!expand_props(raw_filename, &expanded_filename)) {
                LOG(ERROR) << "Could not expand filename '" << raw_filename << "'";
                continue;
            }

            load_properties_from_file(expanded_filename.c_str(), key, properties);
        } else {
            value = strchr(key, '=');
            if (!value) continue;