mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
Imageinfo: resort image and gui relevant entries
Origin commit data
------------------
Branch: ni/coolstream
Commit: 803b3410f2
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-04-10 (Tue, 10 Apr 2018)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -900,6 +900,7 @@ imageinfo.creator Ersteller:
|
||||
imageinfo.date Datum:
|
||||
imageinfo.dokumentation Dokus:
|
||||
imageinfo.forum Forum:
|
||||
imageinfo.gui GUI:
|
||||
imageinfo.head Image-Informationen
|
||||
imageinfo.homepage Homepage:
|
||||
imageinfo.image Image:
|
||||
|
@@ -900,6 +900,7 @@ imageinfo.creator Creator:
|
||||
imageinfo.date Date:
|
||||
imageinfo.dokumentation Docs:
|
||||
imageinfo.forum Forum:
|
||||
imageinfo.gui GUI:
|
||||
imageinfo.head Image informations
|
||||
imageinfo.homepage Home page:
|
||||
imageinfo.image Image:
|
||||
|
@@ -17,10 +17,8 @@
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public
|
||||
License along with this program; if not, write to the
|
||||
Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
@@ -299,20 +297,36 @@ void CImageInfo::InitInfoData()
|
||||
}else
|
||||
printf("[CImageInfo]\t[%s - %d], WARNING! %s contains possible wrong version format, content = [%s]\n", __func__, __LINE__, VERSION_FILE, version_string.c_str());
|
||||
#endif
|
||||
struct utsname uts_info;
|
||||
|
||||
image_info_t imagename = {LOCALE_IMAGEINFO_IMAGE, config.getString("imagename", PACKAGE_NAME)};
|
||||
v_info.push_back(imagename);
|
||||
if (!version_string.empty()){
|
||||
image_info_t version = {LOCALE_IMAGEINFO_VERSION, version_string};
|
||||
v_info.push_back(version);
|
||||
imagename.info_text += " ";
|
||||
imagename.info_text += version_string;
|
||||
v_info.push_back(imagename);
|
||||
}else
|
||||
v_info.push_back(imagename);
|
||||
|
||||
struct utsname uts_info;
|
||||
if (uname(&uts_info) == 0) {
|
||||
image_info_t kernel = {LOCALE_IMAGEINFO_KERNEL, uts_info.release};
|
||||
v_info.push_back(kernel);
|
||||
}
|
||||
|
||||
image_info_t date = {LOCALE_IMAGEINFO_DATE, builddate};
|
||||
v_info.push_back(date);
|
||||
|
||||
image_info_t creator = {LOCALE_IMAGEINFO_CREATOR, config.getString("creator", "n/a")};
|
||||
v_info.push_back(creator);
|
||||
|
||||
image_info_t gui = {LOCALE_IMAGEINFO_GUI, config.getString("gui", PACKAGE_NAME)};
|
||||
v_info.push_back(gui);
|
||||
|
||||
#ifdef VCS
|
||||
image_info_t vcs = {LOCALE_IMAGEINFO_VCS, VCS};
|
||||
v_info.push_back(vcs);
|
||||
#endif
|
||||
image_info_t date = {LOCALE_IMAGEINFO_DATE, builddate};
|
||||
v_info.push_back(date);
|
||||
|
||||
string s_api;
|
||||
#ifdef ENABLE_LUA
|
||||
s_api += "LUA " + to_string(LUA_API_VERSION_MAJOR) + "." + to_string(LUA_API_VERSION_MINOR);
|
||||
@@ -330,12 +344,7 @@ void CImageInfo::InitInfoData()
|
||||
s_api += YHTTPD_VERSION;
|
||||
image_info_t api = {LOCALE_IMAGEINFO_API, s_api};
|
||||
v_info.push_back(api);
|
||||
if (uname(&uts_info) == 0) {
|
||||
image_info_t kernel = {LOCALE_IMAGEINFO_KERNEL, uts_info.release};
|
||||
v_info.push_back(kernel);
|
||||
}
|
||||
image_info_t creator = {LOCALE_IMAGEINFO_CREATOR, config.getString("creator", "n/a")};
|
||||
v_info.push_back(creator);
|
||||
|
||||
image_info_t www = {LOCALE_IMAGEINFO_HOMEPAGE, config.getString("homepage", "n/a")};
|
||||
v_info.push_back(www);
|
||||
image_info_t doc = {LOCALE_IMAGEINFO_DOKUMENTATION, config.getString("docs", "http://wiki.neutrino-hd.de")};
|
||||
|
@@ -927,6 +927,7 @@ typedef enum
|
||||
LOCALE_IMAGEINFO_DATE,
|
||||
LOCALE_IMAGEINFO_DOKUMENTATION,
|
||||
LOCALE_IMAGEINFO_FORUM,
|
||||
LOCALE_IMAGEINFO_GUI,
|
||||
LOCALE_IMAGEINFO_HEAD,
|
||||
LOCALE_IMAGEINFO_HOMEPAGE,
|
||||
LOCALE_IMAGEINFO_IMAGE,
|
||||
|
@@ -927,6 +927,7 @@ const char * locale_real_names[] =
|
||||
"imageinfo.date",
|
||||
"imageinfo.dokumentation",
|
||||
"imageinfo.forum",
|
||||
"imageinfo.gui",
|
||||
"imageinfo.head",
|
||||
"imageinfo.homepage",
|
||||
"imageinfo.image",
|
||||
|
Reference in New Issue
Block a user