opkg_manager: avoid [-Wshadow] warnings

Origin commit data
------------------
Branch: ni/coolstream
Commit: 4cff312f3c
Author: Thilo Graf <dbt@novatux.de>
Date: 2023-03-07 (Tue, 07 Mar 2023)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2023-03-07 23:20:44 +01:00
committed by vanhofen
parent ff01956ef2
commit ec7147c965

View File

@@ -218,11 +218,11 @@ int COPKGManager::exec(CMenuTarget* parent, const string &actionKey)
if (fileBrowser.exec((*local_dir).c_str()))
{
string pkg_name = fileBrowser.getSelectedFile()->Name;
if (!installPackage(pkg_name))
showError(g_Locale->getText(LOCALE_OPKG_FAILURE_INSTALL), NULL, pkg_name);
string package = fileBrowser.getSelectedFile()->Name;
if (!installPackage(package))
showError(g_Locale->getText(LOCALE_OPKG_FAILURE_INSTALL), NULL, package);
/* errno is never set properly, the string is totally useless.
showError(g_Locale->getText(LOCALE_OPKG_FAILURE_INSTALL), strerror(errno), pkg_name);
showError(g_Locale->getText(LOCALE_OPKG_FAILURE_INSTALL), strerror(errno), package);
*/
*local_dir = fileBrowser.getCurrentDir();