mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
CFlashUpdate: add filters for packages
Origin commit data
------------------
Commit: 68585f1a0d
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-20 (Sat, 20 Dec 2014)
This commit is contained in:
@@ -410,8 +410,10 @@ printf("[update] mode is %d\n", softupdate_mode);
|
||||
|
||||
CFileFilter UpdatesFilter;
|
||||
if(allow_flash) UpdatesFilter.addFilter(FILEBROWSER_UPDATE_FILTER);
|
||||
UpdatesFilter.addFilter("bin");
|
||||
UpdatesFilter.addFilter("txt");
|
||||
|
||||
string filters[] = {"bin", "txt", "opk", "ipk"};
|
||||
for(size_t i=0; i<sizeof(filters)/sizeof(filters[0]) ;i++)
|
||||
UpdatesFilter.addFilter(filters[i]);
|
||||
|
||||
UpdatesBrowser.Filter = &UpdatesFilter;
|
||||
|
||||
|
Reference in New Issue
Block a user