43 #define CHECK_DEPENDENCIES_ON_STARTUP 1 44 #define DEPENDENCY_FEEDBACK_IF_OK 1 45 #define AUTO_CHECK_DEPENDENCIES_DEFAULT true 46 #define ALWAYS_SHOW_PATCHES_VIEW_IF_PATCHES_AVAILABLE 0 47 #define GLOBAL_UPDATE_CONFIRMATION_THRESHOLD 20 48 #define ENABLE_SOURCE_RPMS 0 49 #define BRAINDEAD_LIB_NAMING_SCHEME 1 50 #define MARGIN 6 // around the widget 51 #define SPACING_BELOW_MENU_BAR 4 52 #define SPLITTER_HALF_SPACING 4 56 #include <boost/bind.hpp> 58 #include <QHBoxLayout> 59 #include <QVBoxLayout> 62 #include <QApplication> 65 #include <QFileDialog> 69 #include <QMessageBox> 70 #include <QPushButton> 77 #define YUILogComponent "qt-pkg" 80 #include "QY2LayoutUtils.h" 83 #include "YQPackageSelector.h" 84 #include "YQPkgChangeLogView.h" 85 #include "YQPkgChangesDialog.h" 86 #include "YQPkgConflictDialog.h" 87 #include "YQPkgConflictList.h" 88 #include "YQPkgDependenciesView.h" 89 #include "YQPkgDescriptionView.h" 90 #include "YQPkgDiskUsageList.h" 91 #include "YQPkgDiskUsageWarningDialog.h" 92 #include "YQPkgFileListView.h" 93 #include "YQPkgFilterTab.h" 94 #include "YQPkgHistoryDialog.h" 95 #include "YQPkgLangList.h" 96 #include "YQPkgList.h" 97 #include "YQPkgPackageKitGroupsFilterView.h" 98 #include "YQPkgPatchFilterView.h" 99 #include "YQPkgPatchList.h" 100 #include "YQPkgPatternList.h" 101 #include "YQPkgProductDialog.h" 102 #include "YQPkgRepoFilterView.h" 103 #include "YQPkgRepoList.h" 104 #include "YQPkgRpmGroupTagsFilterView.h" 105 #include "YQPkgSearchFilterView.h" 106 #include "YQPkgStatusFilterView.h" 107 #include "YQPkgTechnicalDetailsView.h" 108 #include "YQPkgTextDialog.h" 109 #include "YQPkgUpdateProblemFilterView.h" 110 #include "YQPkgVersionsView.h" 112 #include "zypp/SysContent.h" 113 #include "zypp/base/String.h" 114 #include "zypp/base/Sysconfig.h" 116 #include "QY2ComboTabWidget.h" 117 #include "YQDialog.h" 118 #include "YQApplication.h" 131 #define DEFAULT_EXPORT_FILE_NAME "user-packages.xml" 132 #define FAST_SOLVER 1 134 #define SETTINGS_DIR "YaST2" 135 #define PATH_TO_YAST_SYSCONFIG "/etc/sysconfig/yast2" 136 #define OPTION_VERIFY "PKGMGR_VERIFY_SYSTEM" 137 #define OPTION_AUTO_CHECK "PKGMGR_AUTO_CHECK" 138 #define OPTION_RECOMMENDED "PKGMGR_RECOMMENDED" 141 YQPackageSelector::YQPackageSelector( YWidget * parent,
145 _showChangesDialog =
true;
146 _autoDependenciesAction = 0;
150 _packageKitGroupsFilterView = 0;
151 _patchFilterView = 0;
154 _pkgChangeLogView = 0;
155 _pkgDependenciesView = 0;
156 _pkgDescriptionView = 0;
157 _pkgFileListView = 0;
159 _pkgTechnicalDetailsView = 0;
160 _pkgVersionsView = 0;
162 _rpmGroupTagsFilterView = 0;
163 _searchFilterView = 0;
164 _statusFilterView = 0;
165 _updateProblemFilterView = 0;
166 _excludeDevelPkgs = 0;
167 _excludeDebugInfoPkgs = 0;
169 yuiMilestone() <<
"This is libyui-qt-pkg " << VERSION << std::endl;
171 if ( onlineUpdateMode() ) yuiMilestone() <<
"Online update mode" << std::endl;
172 if ( updateMode() ) yuiMilestone() <<
"Update mode" << std::endl;
180 _filters->loadSettings();
181 bool pagesRestored = _filters->tabCount() > 0;
186 if ( ! pagesRestored )
188 yuiDebug() <<
"No page configuration saved, using fallbacks" << std::endl;
194 if ( _searchFilterView ) _filters->showPage( _searchFilterView );
196 if ( ! searchMode() && ! summaryMode()
197 && _patternList ) _filters->showPage( _patternList );
198 else if ( _rpmGroupTagsFilterView ) _filters->showPage( _rpmGroupTagsFilterView );
200 if ( _statusFilterView ) _filters->showPage( _statusFilterView );
208 if ( _patchFilterView && onlineUpdateMode() )
210 if ( _patchFilterView && _patchList )
212 _filters->showPage( _patchFilterView );
213 _patchList->filter();
216 else if ( _repoFilterView && repoMode() )
220 _filters->showPage( _repoFilterView );
221 _repoFilterView->filter();
224 else if ( _updateProblemFilterView )
226 _filters->showPage( _updateProblemFilterView );
227 _updateProblemFilterView->filter();
229 else if ( searchMode() && _searchFilterView )
231 _filters->showPage( _searchFilterView );
232 _searchFilterView->filter();
233 QTimer::singleShot( 0, _searchFilterView, SLOT( setFocus() ) );
235 else if ( summaryMode() && _statusFilterView )
237 _filters->showPage( _statusFilterView );
238 _statusFilterView->filter();
239 _pkgList->selectNextItem();
241 else if ( _patternList )
243 _filters->showPage( _patternList );
244 _patternList->filter();
248 if ( _filters->diskUsageList() )
249 _filters->diskUsageList()->updateDiskUsage();
251 yuiMilestone() <<
"PackageSelector init done" << std::endl;
254 #if CHECK_DEPENDENCIES_ON_STARTUP 260 QTimer::singleShot( 0,
this, SLOT( resolveDependencies() ) );
272 #define PREFIX "/usr/" 273 return zypp::str::form(
"%s/share/icons/hicolor/%dx%d/apps/%s.png",
274 PREFIX, size, size, name.c_str() );
279 YQPackageSelector::basicLayout()
281 QVBoxLayout *layout =
new QVBoxLayout();
283 layout->setContentsMargins( MARGIN,
287 layout->setSpacing( SPACING_BELOW_MENU_BAR );
288 layoutMenuBar(
this );
290 QString settingsName =
"YQPackageSelector";
292 if ( onlineUpdateMode() ) settingsName =
"YQOnlineUpdate";
293 if ( updateMode() ) settingsName =
"YQSystemUpdate";
296 YUI_CHECK_NEW( _filters );
298 layout->addWidget( _filters );
299 layoutFilters(
this );
300 layoutRightPane( _filters->
rightPane() );
305 YQPackageSelector::layoutFilters( QWidget *parent )
317 YUI_CHECK_NEW( _updateProblemFilterView );
318 _filters->
addPage( _(
"&Update Problems" ), _updateProblemFilterView,
"update_problems" );
327 if ( onlineUpdateMode()
328 #
if ALWAYS_SHOW_PATCHES_VIEW_IF_PATCHES_AVAILABLE
329 || ! zyppPool().empty<zypp::Patch>()
341 if ( ! zyppPool().empty<zypp::Pattern>() || testMode() )
344 YUI_CHECK_NEW( _patternList );
345 _filters->
addPage( _(
"Patter&ns" ), _patternList,
"patterns" );
347 connect( _patternList, SIGNAL( statusChanged() ),
350 connect(
this, SIGNAL(
refresh() ),
351 _patternList, SLOT ( updateItemStates() ) );
353 if ( _pkgConflictDialog )
355 connect( _pkgConflictDialog, SIGNAL( updatePackages() ),
356 _patternList, SLOT ( updateItemStates() ) );
366 YUI_CHECK_NEW( _packageKitGroupsFilterView );
367 _filters->
addPage( _(
"Package &Groups" ), _packageKitGroupsFilterView,
"package_groups" );
369 connect(
this, SIGNAL(
loadData() ),
370 _packageKitGroupsFilterView, SLOT ( filter() ) );
378 YUI_CHECK_NEW( _rpmGroupTagsFilterView );
379 _filters->
addPage( _(
"&RPM Groups" ), _rpmGroupTagsFilterView,
"rpm_groups" );
381 connect(
this, SIGNAL(
loadData() ),
382 _rpmGroupTagsFilterView, SLOT ( filter() ) );
390 YUI_CHECK_NEW( _langList );
392 _filters->
addPage( _(
"&Languages" ), _langList,
"languages" );
393 _langList->setSizePolicy( QSizePolicy( QSizePolicy::Ignored, QSizePolicy::Ignored ) );
395 connect( _langList, SIGNAL( statusChanged() ),
398 connect(
this, SIGNAL(
refresh() ),
399 _langList, SLOT ( updateItemStates() ) );
407 YUI_CHECK_NEW( _repoFilterView );
408 _filters->
addPage( _(
"&Repositories" ), _repoFilterView,
"repos" );
421 YUI_CHECK_NEW( _searchFilterView );
422 _filters->
addPage( _(
"S&earch" ), _searchFilterView,
"search" );
429 _filters->
addPage( _(
"&Keywords" ),
new QLabel(
"Keywords\nfilter\n\nfor future use",
this ),
"keywords" );
437 YUI_CHECK_NEW( _statusFilterView );
438 _filters->
addPage( _(
"&Installation Summary" ), _statusFilterView,
"inst_summary" );
442 YQPackageSelector::~YQPackageSelector()
448 YQPackageSelector::layoutRightPane( QWidget *parent )
450 QVBoxLayout *layout =
new QVBoxLayout( parent );
451 YUI_CHECK_NEW( layout );
452 layout->setContentsMargins( SPLITTER_HALF_SPACING,
457 QSplitter * splitter =
new QSplitter( Qt::Vertical, parent );
458 YUI_CHECK_NEW( splitter );
459 layout->addWidget(splitter);
461 layoutPkgList( splitter );
462 layoutDetailsViews( splitter );
463 layoutButtons( parent );
470 YQPackageSelector::layoutPkgList( QWidget *parent )
474 QWidget *_notificationsContainer =
new QWidget(parent);
475 QVBoxLayout *layout =
new QVBoxLayout(_notificationsContainer);
477 _repoUpgradingLabel =
new QLabel(_notificationsContainer);
478 _repoUpgradingLabel->setTextFormat(Qt::RichText);
479 _repoUpgradingLabel->setWordWrap(
true);
480 _repoUpgradingLabel->setVisible(
false);
482 _repoUpgradeLabel =
new QLabel(_notificationsContainer);
483 _repoUpgradeLabel->setTextFormat(Qt::RichText);
484 _repoUpgradeLabel->setWordWrap(
true);
485 _repoUpgradeLabel->setVisible(
false);
486 _repoUpgradeLabel->setObjectName(
"RepoUpgradeLabel");
488 layout->addWidget(_repoUpgradingLabel);
489 layout->addWidget(_repoUpgradeLabel);
495 connect( _repoUpgradeLabel, SIGNAL( linkActivated ( QString ) ),
498 connect(_repoUpgradingLabel, SIGNAL( linkActivated( QString ) ),
504 YUI_CHECK_NEW( _pkgList );
506 connect( _pkgList, SIGNAL( statusChanged() ),
511 YQPackageSelector::layoutDetailsViews( QWidget *parent )
516 _detailsViews =
new QTabWidget( parent );
517 YUI_CHECK_NEW( _detailsViews );
524 YUI_CHECK_NEW( _pkgDescriptionView );
526 _detailsViews->addTab( _pkgDescriptionView, _(
"D&escription" ) );
527 _detailsViews->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding ) );
529 connect( _pkgList, SIGNAL( currentItemChanged ( ZyppSel ) ),
530 _pkgDescriptionView, SLOT ( showDetailsIfVisible( ZyppSel ) ) );
537 YUI_CHECK_NEW( _pkgTechnicalDetailsView );
539 _detailsViews->addTab( _pkgTechnicalDetailsView, _(
"&Technical Data" ) );
541 connect( _pkgList, SIGNAL( currentItemChanged ( ZyppSel ) ),
542 _pkgTechnicalDetailsView, SLOT ( showDetailsIfVisible( ZyppSel ) ) );
550 YUI_CHECK_NEW( _pkgDependenciesView );
552 _detailsViews->addTab( _pkgDependenciesView, _(
"Dependencies" ) );
553 _detailsViews->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding ) );
555 connect( _pkgList, SIGNAL( currentItemChanged ( ZyppSel ) ),
556 _pkgDependenciesView, SLOT ( showDetailsIfVisible( ZyppSel ) ) );
565 YUI_CHECK_NEW( _pkgVersionsView );
567 _detailsViews->addTab( _pkgVersionsView, _(
"&Versions" ) );
569 connect( _pkgList, SIGNAL( currentItemChanged ( ZyppSel ) ),
570 _pkgVersionsView, SLOT ( showDetailsIfVisible( ZyppSel ) ) );
572 connect( _pkgList, SIGNAL( statusChanged() ),
573 _pkgVersionsView, SIGNAL( statusChanged() ) );
580 if ( haveInstalledPkgs )
583 YUI_CHECK_NEW( _pkgFileListView );
585 _detailsViews->addTab( _pkgFileListView, _(
"File List" ) );
586 _detailsViews->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding ) );
588 connect( _pkgList, SIGNAL( currentItemChanged ( ZyppSel ) ),
589 _pkgFileListView, SLOT ( showDetailsIfVisible( ZyppSel ) ) );
597 if ( haveInstalledPkgs )
600 YUI_CHECK_NEW( _pkgChangeLogView );
602 _detailsViews->addTab( _pkgChangeLogView, _(
"Change Log" ) );
603 _detailsViews->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding ) );
605 connect( _pkgList, SIGNAL( currentItemChanged ( ZyppSel ) ),
606 _pkgChangeLogView, SLOT ( showDetailsIfVisible( ZyppSel ) ) );
612 YQPackageSelector::layoutButtons( QWidget *parent )
614 QWidget * button_box =
new QWidget( parent );
615 YUI_CHECK_NEW( button_box );
616 parent->layout()->addWidget( button_box );
618 QHBoxLayout * layout =
new QHBoxLayout( button_box );
619 YUI_CHECK_NEW( layout );
621 button_box->setLayout( layout );
622 layout->setContentsMargins( 2,
627 layout->addStretch();
629 QPushButton * cancel_button =
new QPushButton( _(
"&Cancel" ), button_box );
630 YUI_CHECK_NEW( cancel_button );
631 layout->addWidget(cancel_button);
633 cancel_button->setSizePolicy( QSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed ) );
635 connect( cancel_button, SIGNAL( clicked() ),
636 this, SLOT (
reject() ) );
639 QPushButton * accept_button =
new QPushButton( _(
"&Accept" ), button_box );
640 YUI_CHECK_NEW( accept_button );
641 layout->addWidget(accept_button);
642 accept_button->setSizePolicy( QSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed ) );
644 connect( accept_button, SIGNAL( clicked() ),
645 this, SLOT (
accept() ) );
647 button_box->setFixedHeight( button_box->sizeHint().height() );
652 YQPackageSelector::layoutMenuBar( QWidget *parent )
654 _menuBar =
new QMenuBar( parent );
655 YUI_CHECK_NEW( _menuBar );
656 parent->layout()->addWidget(_menuBar);
679 _fileMenu =
new QMenu( _menuBar );
680 YUI_CHECK_NEW( _fileMenu );
681 QAction * action = _menuBar->addMenu( _fileMenu );
682 action->setText( _(
"&File" ));
684 _fileMenu->addAction( _(
"&Import..." ),
this, SLOT(
pkgImport() ) );
685 _fileMenu->addAction( _(
"&Export..." ),
this, SLOT(
pkgExport() ) );
687 _fileMenu->addSeparator();
689 _fileMenu->addAction( _(
"E&xit -- Discard Changes" ),
this, SLOT(
reject() ) );
690 _fileMenu->addAction( _(
"&Quit -- Save Changes" ),
this, SLOT(
accept() ) );
699 _pkgMenu =
new QMenu( _menuBar );
700 YUI_CHECK_NEW( _pkgMenu );
701 action = _menuBar->addMenu( _pkgMenu );
702 action->setText(_(
"&Package" ));
704 _pkgMenu->addAction(_pkgList->actionSetCurrentInstall);
705 _pkgMenu->addAction(_pkgList->actionSetCurrentDontInstall);
706 _pkgMenu->addAction(_pkgList->actionSetCurrentKeepInstalled);
707 _pkgMenu->addAction(_pkgList->actionSetCurrentDelete);
708 _pkgMenu->addAction(_pkgList->actionSetCurrentUpdate);
709 _pkgMenu->addAction(_pkgList->actionSetCurrentUpdateForce);
710 _pkgMenu->addAction(_pkgList->actionSetCurrentTaboo);
712 #if ENABLE_SOURCE_RPMS 713 _pkgMenu->addSeparator();
715 _pkgMenu->addAction(_pkgList->actionInstallSourceRpm);
716 _pkgMenu->addAction(_pkgList->actionDontInstallSourceRpm);
719 _pkgMenu->addSeparator();
721 YUI_CHECK_NEW( submenu );
723 #if ENABLE_SOURCE_RPMS 724 submenu->addSeparator();
726 _pkgMenu->addAction(_pkgList->actionInstallListSourceRpms);
727 _pkgMenu->addAction(_pkgList->actionDontInstallListSourceRpms);
734 submenu =
new QMenu( _pkgMenu );
735 YUI_CHECK_NEW( submenu );
740 action = _pkgMenu->addMenu( submenu );
741 action->setText(_(
"All Packages" ));
743 submenu->addAction( _(
"Update if newer version available" ),
746 submenu->addAction( _(
"Update unconditionally" ),
757 _patchMenu =
new QMenu( _menuBar );
758 YUI_CHECK_NEW( _patchMenu );
759 action = _menuBar->addMenu( _patchMenu );
760 action->setText(_(
"&Patch" ));
762 _patchMenu->addAction(_patchList->actionSetCurrentInstall);
763 _patchMenu->addAction(_patchList->actionSetCurrentDontInstall);
764 _patchMenu->addAction(_patchList->actionSetCurrentKeepInstalled);
766 #if ENABLE_DELETING_PATCHES 767 _patchMenu->addAction(_patchList->actionSetCurrentDelete);
769 _patchMenu->addAction(_patchList->actionSetCurrentUpdate);
770 _patchMenu->addAction(_patchList->actionSetCurrentUpdateForce);
771 _patchMenu->addAction(_patchList->actionSetCurrentTaboo);
773 _patchMenu->addSeparator();
782 if ( repoMgrEnabled() )
784 _configMenu =
new QMenu( _menuBar );
785 YUI_CHECK_NEW( _configMenu );
786 action = _menuBar->addMenu( _configMenu );
787 action->setText(_(
"Confi&guration" ));
788 _configMenu->addAction( _(
"&Repositories..." ),
this, SLOT(
repoManager() ), Qt::CTRL + Qt::Key_R );
796 _dependencyMenu =
new QMenu( _menuBar );
797 YUI_CHECK_NEW( _dependencyMenu );
798 action = _menuBar->addMenu( _dependencyMenu );
799 action->setText(_(
"&Dependencies" ));
803 _autoDependenciesAction =
new QAction( _(
"&Autocheck" ),
this );
804 _autoDependenciesAction->setCheckable(
true );
805 _dependencyMenu->addAction( _autoDependenciesAction );
807 _installRecommendedAction = _dependencyMenu->addAction(
808 _(
"Install &Recommended Packages"),
809 this, SLOT (pkgInstallRecommendedChanged(
bool)));
810 _installRecommendedAction->setCheckable(
true );
817 _optionsMenu =
new QMenu( _menuBar );
818 YUI_CHECK_NEW( _optionsMenu );
819 action = _menuBar->addMenu( _optionsMenu );
821 action->setText(_(
"&Options" ));
824 _showDevelAction = _optionsMenu->addAction( _(
"Show -de&vel Packages" ),
825 this, SLOT( pkgExcludeDevelChanged(
bool ) ), Qt::Key_F7 );
826 _showDevelAction->setCheckable(
true);
828 _excludeDevelPkgs =
new YQPkgObjList::ExcludeRule( _pkgList, QRegExp(
".*(\\d+bit)?-devel(-\\d+bit)?$" ), _pkgList->nameCol() );
829 YUI_CHECK_NEW( _excludeDevelPkgs );
830 _excludeDevelPkgs->
enable(
false );
833 _showDebugAction = _optionsMenu->addAction( _(
"Show -&debuginfo/-debugsource Packages" ),
835 _showDebugAction->setCheckable(
true);
836 _excludeDebugInfoPkgs =
new YQPkgObjList::ExcludeRule( _pkgList, QRegExp(
".*(-\\d+bit)?-(debuginfo|debugsource)(-32bit)?$" ), _pkgList->nameCol() );
837 YUI_CHECK_NEW( _excludeDebugInfoPkgs );
838 _excludeDebugInfoPkgs->
enable(
false );
841 _verifySystemModeAction = _optionsMenu->addAction( _(
"&System Verification Mode" ),
842 this, SLOT( pkgVerifySytemModeChanged(
bool ) ) );
843 _verifySystemModeAction->setCheckable(
true);
846 _cleanDepsOnRemoveAction = _optionsMenu->addAction( _(
"&Cleanup when deleting packages" ),
847 this, SLOT( pkgCleanDepsOnRemoveChanged(
bool ) ) );
848 _cleanDepsOnRemoveAction->setCheckable(
true);
850 _allowVendorChangeAction = _optionsMenu->addAction( _(
"&Allow vendor change" ),
851 this, SLOT( pkgAllowVendorChangeChanged(
bool ) ) );
852 _allowVendorChangeAction->setCheckable(
true);
860 _extrasMenu =
new QMenu( _menuBar );
861 YUI_CHECK_NEW( _extrasMenu );
862 action = _menuBar->addMenu( _extrasMenu );
863 action->setText(_(
"E&xtras" ));
865 _extrasMenu->addAction( _(
"Show &Products" ),
this, SLOT(
showProducts() ) );
866 _extrasMenu->addAction( _(
"Show P&ackage Changes" ),
this, SLOT(
showAutoPkgList() ), Qt::CTRL + Qt::Key_A );
867 _extrasMenu->addAction( _(
"Show &History" ),
this, SLOT(
showHistory() ) );
869 _extrasMenu->addSeparator();
871 #if BRAINDEAD_LIB_NAMING_SCHEME 875 _extrasMenu->addAction( _(
"Install All Matching -&devel Packages" ),
this, SLOT(
installDevelPkgs() ) );
879 _extrasMenu->addAction( _(
"Install All Matching -de&buginfo Packages" ),
this, SLOT(
installDebugInfoPkgs() ) );
882 _extrasMenu->addAction( _(
"Install All Matching -debug&source Packages" ),
this, SLOT(
installDebugSourcePkgs() ) );
884 _extrasMenu->addAction( _(
"Install All Matching &Recommended Packages" ),
887 _extrasMenu->addSeparator();
889 if ( _pkgConflictDialog )
890 _extrasMenu->addAction( _(
"Generate Dependency Resolver &Test Case" ),
891 _pkgConflictDialog, SLOT( askCreateSolverTestCase() ) );
893 if ( _actionResetIgnoredDependencyProblems )
894 _extrasMenu->addAction(_actionResetIgnoredDependencyProblems);
898 _extrasMenu->addAction(_patchList->actionShowRawPatchInfo);
906 _helpMenu =
new QMenu( _menuBar );
907 YUI_CHECK_NEW( _helpMenu );
908 _menuBar->addSeparator();
909 action = _menuBar->addMenu( _helpMenu );
910 action->setText(_(
"&Help" ));
916 _helpMenu->addAction( _(
"&Overview" ),
this, SLOT(
help() ), Qt::Key_F1 );
919 _helpMenu->addAction( _(
"&Symbols" ),
this, SLOT(
symbolHelp() ), Qt::SHIFT + Qt::Key_F1 );
922 _helpMenu->addAction( _(
"&Keys" ),
this, SLOT(
keyboardHelp() ) );
929 bool hasUpdateSignal )
931 if ( ! filter )
return;
932 if ( ! pkgList )
return;
936 connect( _filters, SIGNAL( currentChanged(QWidget *) ),
937 filter, SLOT ( filterIfVisible() ) );
940 connect(
this, SIGNAL(
refresh() ),
941 filter, SLOT ( filterIfVisible() ) );
943 connect( filter, SIGNAL( filterStart() ),
944 pkgList, SLOT ( clear() ) );
946 connect( filter, SIGNAL( filterMatch( ZyppSel, ZyppPkg ) ),
947 pkgList, SLOT ( addPkgItem ( ZyppSel, ZyppPkg ) ) );
949 connect( filter, SIGNAL( filterFinished() ),
950 pkgList, SLOT ( resort() ) );
952 connect( filter, SIGNAL( filterFinished() ),
953 pkgList, SLOT ( selectSomething() ) );
955 connect( filter, SIGNAL( filterFinished() ),
956 pkgList, SLOT ( logExcludeStatistics() ) );
958 connect( filter, SIGNAL( filterFinished() ),
959 pkgList, SLOT ( setFocus() ) );
964 connect( filter, SIGNAL( updatePackages() ),
965 pkgList, SLOT ( updateItemStates() ) );
969 connect( filter, SIGNAL( updatePackages() ),
983 connectFilter( _packageKitGroupsFilterView, _pkgList,
false );
991 if ( _searchFilterView && _pkgList )
993 connect( _searchFilterView, SIGNAL( message(
const QString & ) ),
994 _pkgList, SLOT ( message(
const QString & ) ) );
997 if ( _repoFilterView && _pkgList )
999 connect( _repoFilterView, SIGNAL( filterNearMatch ( ZyppSel, ZyppPkg ) ),
1000 _pkgList, SLOT ( addPkgItemDimmed ( ZyppSel, ZyppPkg ) ) );
1006 connect( _pkgList, SIGNAL( statusChanged() ),
1018 if ( _pkgConflictDialog )
1022 connect( _pkgConflictDialog, SIGNAL( updatePackages() ),
1023 _pkgList, SLOT ( updateItemStates() ) );
1028 connect( _pkgConflictDialog, SIGNAL( updatePackages() ),
1029 _patternList, SLOT ( updateItemStates() ) );
1035 connect( _pkgConflictDialog, SIGNAL( updatePackages() ),
1045 if ( _pkgVersionsView && _pkgList )
1047 connect( _pkgVersionsView, SIGNAL( candidateChanged( ZyppObj ) ),
1048 _pkgList, SLOT ( updateItemData() ) );
1050 connect( _pkgVersionsView, SIGNAL( statusChanged() ),
1051 _pkgList, SLOT ( updateItemData() ) );
1060 YUI_CHECK_NEW( accel );
1066 if ( _pkgMenu && _pkgList )
1068 connect( _pkgMenu, SIGNAL( aboutToShow() ),
1069 _pkgList, SLOT ( updateActions() ) );
1072 if ( _patchMenu && _patchList )
1074 connect( _patchMenu, SIGNAL( aboutToShow() ),
1075 _patchList, SLOT ( updateActions() ) );
1083 if ( _autoDependenciesAction && ! _autoDependenciesAction->isChecked() )
1093 if ( ! _pkgConflictDialog )
1095 yuiError() <<
"No package conflict dialog existing" << std::endl;
1096 return QDialog::Accepted;
1099 YQUI::ui()->busyCursor();
1101 YQUI::ui()->normalCursor();
1103 #if DEPENDENCY_FEEDBACK_IF_OK 1105 if ( result == QDialog::Accepted )
1107 QMessageBox::information(
this,
"",
1108 _(
"All package dependencies are OK." ),
1120 if ( ! _patchFilterView )
1123 YUI_CHECK_NEW( _patchFilterView );
1124 _filters->
addPage( _(
"P&atches" ), _patchFilterView,
"patches" );
1126 _patchList = _patchFilterView->
patchList();
1127 YUI_CHECK_PTR( _patchList );
1137 if ( ! _patchFilterView )
1139 yuiMilestone() <<
"Activating patches filter view" << std::endl;
1144 _filters->
showPage( _patchFilterView );
1150 _filters->
showPage( _patchFilterView );
1158 if ( _pkgList && _patchList )
1162 connect( _patchList, SIGNAL( filterMatch (
const QString &,
const QString &, FSize ) ),
1163 _pkgList, SLOT ( addPassiveItem(
const QString &,
const QString &, FSize ) ) );
1165 connect( _patchList, SIGNAL( statusChanged() ),
1168 if ( _pkgConflictDialog )
1170 connect( _pkgConflictDialog,SIGNAL( updatePackages() ),
1171 _patchList, SLOT ( updateItemStates() ) );
1174 connect(
this, SIGNAL(
refresh() ),
1175 _patchList, SLOT ( updateItemStates() ) );
1184 QString filename = YQApplication::askForSaveFileName( QString( DEFAULT_EXPORT_FILE_NAME ),
1185 QString(
"*.xml;;*" ),
1186 _(
"Save Package List" ) );
1188 if ( ! filename.isEmpty() )
1190 zypp::syscontent::Writer writer;
1191 const zypp::ResPool & pool = zypp::getZYpp()->pool();
1195 for_each( pool.begin(), pool.end(),
1196 boost::bind( &zypp::syscontent::Writer::addIf,
1197 boost::ref( writer ),
1209 std::ofstream exportFile( toUTF8( filename ).c_str() );
1210 exportFile.exceptions( std::ios_base::badbit | std::ios_base::failbit );
1211 exportFile << writer;
1213 yuiMilestone() <<
"Package list exported to " << filename << std::endl;
1215 catch ( std::exception & exception )
1217 yuiWarning() <<
"Error exporting package list to " << filename << std::endl;
1221 QFile::remove(filename);
1224 QMessageBox::warning(
this,
1226 _(
"Error exporting package list to %1" ).arg( filename ),
1227 QMessageBox::Ok | QMessageBox::Default,
1238 QString filename = QFileDialog::getOpenFileName(
this, _(
"Load Package List" ), DEFAULT_EXPORT_FILE_NAME,
1242 if ( ! filename.isEmpty() )
1244 yuiMilestone() <<
"Importing package list from " << filename << std::endl;
1248 std::ifstream importFile( toUTF8( filename ).c_str() );
1249 zypp::syscontent::Reader reader( importFile );
1255 typedef zypp::syscontent::Reader::Entry ZyppReaderEntry;
1256 typedef std::pair<string, ZyppReaderEntry> ImportMapPair;
1258 map<string, ZyppReaderEntry> importPkg;
1259 map<string, ZyppReaderEntry> importPatterns;
1261 for ( zypp::syscontent::Reader::const_iterator it = reader.begin();
1265 string kind = it->kind();
1267 if ( kind ==
"package" ) importPkg.insert ( ImportMapPair( it->name(), *it ) );
1268 else if ( kind ==
"pattern" ) importPatterns.insert( ImportMapPair( it->name(), *it ) );
1271 yuiDebug() <<
"Found " << importPkg.size()
1272 <<
" packages and " << importPatterns.size()
1273 <<
" patterns in " << filename
1281 for ( ZyppPoolIterator it = zyppPatternsBegin();
1282 it != zyppPatternsEnd();
1285 ZyppSel selectable = *it;
1286 importSelectable( *it, importPatterns.find( selectable->name() ) != importPatterns.end(),
"pattern" );
1289 for ( ZyppPoolIterator it = zyppPkgBegin();
1293 ZyppSel selectable = *it;
1294 importSelectable( *it, importPkg.find( selectable->name() ) != importPkg.end(),
"package" );
1304 if ( _statusFilterView )
1308 _filters->
showPage( _statusFilterView );
1309 _statusFilterView->
filter();
1313 catch (
const zypp::Exception & exception )
1315 yuiWarning() <<
"Error reading package list from " << filename << std::endl;
1318 QMessageBox::warning(
this,
1320 _(
"Error loading package list from %1" ).arg( filename ),
1321 QMessageBox::Ok | QMessageBox::Default,
1322 QMessageBox::NoButton,
1323 QMessageBox::NoButton );
1334 ZyppStatus oldStatus = selectable->status();
1335 ZyppStatus newStatus = oldStatus;
1343 switch ( oldStatus )
1347 case S_KeepInstalled:
1351 newStatus = oldStatus;
1356 newStatus = S_KeepInstalled;
1357 yuiDebug() <<
"Keeping " << kind <<
" " << selectable->name() << std::endl;
1363 if ( selectable->hasCandidateObj() )
1365 newStatus = S_Install;
1366 yuiDebug() <<
"Adding " << kind <<
" " << selectable->name() << std::endl;
1370 yuiDebug() <<
"Can't add " << kind <<
" " << selectable->name()
1371 <<
": No candidate" << std::endl;
1382 switch ( oldStatus )
1386 case S_KeepInstalled:
1391 yuiDebug() <<
"Deleting " << kind <<
" " << selectable->name() << std::endl;
1398 newStatus = oldStatus;
1403 if ( oldStatus != newStatus )
1404 selectable->setStatus( newStatus );
1416 yuiMilestone() << count <<
" pkgs found for update" << std::endl;
1418 if ( count >= GLOBAL_UPDATE_CONFIRMATION_THRESHOLD )
1420 if ( QMessageBox::question(
this,
"",
1422 _(
"%1 packages will be updated" ).arg( count ),
1423 _(
"&Continue" ), _(
"C&ancel" ),
1435 if ( _statusFilterView )
1437 _filters->
showPage( _statusFilterView );
1438 _statusFilterView->
clear();
1440 _statusFilterView->
filter();
1447 zypp::ResPool::repository_iterator it;
1448 _repoUpgradeLabel->setText(
"");
1449 _repoUpgradingLabel->setText(
"");
1453 for ( it = zypp::getZYpp()->pool().knownRepositoriesBegin();
1454 it != zypp::getZYpp()->pool().knownRepositoriesEnd();
1457 zypp::Repository repo(*it);
1460 if ( zypp::getZYpp()->resolver()->upgradingRepo(repo) )
1462 _repoUpgradingLabel->setText(_repoUpgradingLabel->text() + _(
"<p><small><a href=\"repoupgraderemove:///%1\">Cancel switching</a> system packages to versions in repository %2</small></p>")
1463 .arg(fromUTF8(repo.alias().c_str()))
1464 .arg(fromUTF8(repo.name().c_str()))
1469 for ( it = zypp::getZYpp()->pool().knownRepositoriesBegin();
1470 it != zypp::getZYpp()->pool().knownRepositoriesEnd();
1473 zypp::Repository repo(*it);
1477 if ( ! zypp::getZYpp()->resolver()->upgradingRepo(repo) &&
1478 ! repo.isSystemRepo() &&
1481 _repoUpgradeLabel->setText(_repoUpgradeLabel->text() + _(
"<p><a href=\"repoupgradeadd:///%1\">Switch system packages</a> to the versions in this repository (%2)</p>")
1482 .arg(fromUTF8(repo.alias().c_str()))
1483 .arg(fromUTF8(repo.name().c_str()))
1487 _repoUpgradeLabel->setVisible(!_repoUpgradeLabel->text().isEmpty() &&
1488 _repoFilterView->isVisible() );
1489 _repoUpgradingLabel->setVisible(!_repoUpgradingLabel->text().isEmpty());
1495 yuiDebug() <<
"link " << link <<
" clicked on label" << std::endl;
1498 if (url.scheme() ==
"repoupgradeadd")
1500 yuiDebug() <<
"looking for repo " << url.path() << std::endl;
1501 std::string alias(url.path().remove(0,1).toStdString());
1502 zypp::Repository repo(zypp::getZYpp()->pool().reposFind(alias));
1503 yuiDebug() << repo << std::endl;
1505 if ( repo != zypp::Repository::noRepository )
1506 zypp::getZYpp()->resolver()->addUpgradeRepo(repo);
1508 else if (url.scheme() ==
"repoupgraderemove")
1510 std::string alias(url.path().remove(0,1).toStdString());
1511 zypp::Repository repo(zypp::getZYpp()->pool().reposFind(alias));
1513 if ( repo != zypp::Repository::noRepository )
1514 zypp::getZYpp()->resolver()->removeUpgradeRepo(repo);
1517 yuiDebug() <<
"unknown link operation " << url.scheme() << std::endl;
1560 zypp::getZYpp()->resolver()->setIgnoreAlreadyRecommended(
false );
1563 if ( _filters && _statusFilterView )
1565 _filters->
showPage( _statusFilterView );
1566 _statusFilterView->
filter();
1570 _(
"Added Subpackages:" ),
1573 YQPkgChangesDialog::FilterAutomatic,
1574 YQPkgChangesDialog::OptionNone );
1581 if ( _optionsMenu && _pkgList )
1583 if ( _excludeDebugInfoPkgs )
1584 _excludeDebugInfoPkgs->
enable( ! on );
1592 YQPackageSelector::pkgExcludeDevelChanged(
bool on )
1594 if ( _optionsMenu && _pkgList )
1596 if ( _excludeDevelPkgs )
1597 _excludeDevelPkgs->
enable( ! on );
1605 YQPackageSelector::pkgVerifySytemModeChanged(
bool on )
1607 zypp::getZYpp()->resolver()->setSystemVerification( on );
1611 YQPackageSelector::pkgInstallRecommendedChanged(
bool on )
1613 zypp::getZYpp()->resolver()->setOnlyRequires( !on );
1618 YQPackageSelector::pkgCleanDepsOnRemoveChanged(
bool on )
1620 zypp::getZYpp()->resolver()->setCleandepsOnRemove( on );
1626 YQPackageSelector::pkgAllowVendorChangeChanged(
bool on )
1628 zypp::getZYpp()->resolver()->setAllowVendorChange( on );
1639 QMap<QString, ZyppSel> subPkgs;
1641 for ( ZyppPoolIterator it = zyppPkgBegin();
1645 QString name = (*it)->name().c_str();
1647 if ( name.endsWith( suffix ) || name.endsWith( suffix +
"-32bit" ) )
1649 subPkgs[ name ] = *it;
1651 yuiDebug() <<
"Found subpackage: " << name << std::endl;
1658 for ( ZyppPoolIterator it = zyppPkgBegin();
1662 QString name = (*it)->name().c_str();
1664 if ( subPkgs.contains( name + suffix ) )
1666 QString subPkgName( name + suffix );
1667 ZyppSel subPkg = subPkgs[ subPkgName ];
1669 switch ( (*it)->status() )
1677 yuiMilestone() <<
"Ignoring unwanted subpackage " << subPkgName << std::endl;
1682 case S_KeepInstalled:
1686 if ( ! subPkg->installedObj() )
1688 subPkg->setStatus( S_Install );
1689 yuiMilestone() <<
"Installing subpackage " << subPkgName << std::endl;
1699 if ( ! subPkg->installedObj() )
1701 subPkg->setStatus( S_Install );
1702 yuiMilestone() <<
"Installing subpackage " << subPkgName << std::endl;
1706 subPkg->setStatus( S_Update );
1707 yuiMilestone() <<
"Updating subpackage " << subPkgName << std::endl;
1718 if ( _filters && _statusFilterView )
1720 _filters->
showPage( _statusFilterView );
1721 _statusFilterView->
filter();
1725 _(
"Added Subpackages:" ),
1726 QRegExp(
".*" + suffix +
"$" ),
1729 YQPkgChangesDialog::FilterAutomatic,
1730 YQPkgChangesDialog::OptionNone );
1736 QString settingsName =
"YQPackageSelector";
1737 if ( onlineUpdateMode() ) settingsName =
"YQOnlineUpdate";
1738 if ( updateMode() ) settingsName =
"YQSystemUpdate";
1740 QSettings settings( QSettings::UserScope, SETTINGS_DIR, settingsName );
1742 _showDevelAction->setChecked(settings.value(
"Options/showDevelPackages",
true).toBool());
1743 pkgExcludeDevelChanged(_showDevelAction->isChecked());
1745 _showDebugAction->setChecked(settings.value(
"Options/showDebugPackages",
true).toBool());
1748 loadCommonSettings();
1752 YQPackageSelector::loadCommonSettings()
1754 map<string, string> sysconfig = zypp::base::sysconfig::read(PATH_TO_YAST_SYSCONFIG);
1756 bool auto_check = AUTO_CHECK_DEPENDENCIES_DEFAULT;
1757 auto it = sysconfig.find(OPTION_AUTO_CHECK);
1758 if (it != sysconfig.end())
1760 auto_check = it->second ==
"yes";
1762 _autoDependenciesAction->setChecked(auto_check);
1764 bool verify_system = zypp::getZYpp()->resolver()->systemVerification();
1765 it = sysconfig.find(OPTION_VERIFY);
1766 if (it != sysconfig.end())
1768 verify_system = it->second ==
"yes";
1770 _verifySystemModeAction->setChecked(verify_system);
1771 pkgVerifySytemModeChanged(verify_system);
1773 bool install_recommended = ! zypp::getZYpp()->resolver()->onlyRequires();
1774 it = sysconfig.find(OPTION_RECOMMENDED);
1775 if (it != sysconfig.end())
1777 install_recommended = it->second ==
"yes";
1779 _installRecommendedAction->setChecked(install_recommended);
1780 pkgInstallRecommendedChanged(install_recommended);
1782 bool allow_vendor_change = zypp::getZYpp()->resolver()->allowVendorChange();
1783 _allowVendorChangeAction->setChecked(allow_vendor_change);
1784 pkgAllowVendorChangeChanged(allow_vendor_change);
1786 bool clean_deps_on_remove = zypp::getZYpp()->resolver()->cleandepsOnRemove();
1787 _cleanDepsOnRemoveAction->setChecked(clean_deps_on_remove);
1788 pkgCleanDepsOnRemoveChanged(clean_deps_on_remove);
1794 QString settingsName =
"YQPackageSelector";
1795 if ( onlineUpdateMode() ) settingsName =
"YQOnlineUpdate";
1796 if ( updateMode() ) settingsName =
"YQSystemUpdate";
1798 QSettings settings( QSettings::UserScope, SETTINGS_DIR, settingsName );
1800 settings.setValue(
"Options/showDevelPackages", _showDevelAction->isChecked() );
1801 settings.setValue(
"Options/showDebugPackages", _showDebugAction->isChecked() );
1803 saveCommonSettings();
1807 YQPackageSelector::saveCommonSettings()
1811 zypp::base::sysconfig::writeStringVal(
1812 PATH_TO_YAST_SYSCONFIG,
1814 ( _autoDependenciesAction->isChecked() ?
"yes" :
"no"),
1815 "Automatic dependency checking");
1816 zypp::base::sysconfig::writeStringVal(
1817 PATH_TO_YAST_SYSCONFIG,
1819 (_verifySystemModeAction->isChecked() ?
"yes" :
"no"),
1820 "System verification mode");
1821 zypp::base::sysconfig::writeStringVal(
1822 PATH_TO_YAST_SYSCONFIG,
1824 (_installRecommendedAction->isChecked() ?
"yes" :
"no"),
1825 "Install recommended packages");
1827 catch(
const std::exception &e )
1829 yuiError() <<
"Writing " << PATH_TO_YAST_SYSCONFIG <<
" failed" << std::endl;
1833 #include "YQPackageSelector.moc" Display the description of a ZyppObj derived object along with its name and summary.
void onlineUpdateConfiguration()
Close processing and request start of the online update configuration.
void addPatchFilterView()
Add the "Patches" filter view, if it is not already there.
void showPage(QWidget *page)
Show a page.
int globalSetPkgStatus(ZyppStatus newStatus, bool force, bool countOnly)
Set the status of all packages in the pool to a new value.
void loadData()
Emitted once (!) when the dialog is about to be shown, when all widgets are created and all signal/sl...
void globalUpdatePkg()
Set the status of all installed packages (all in the pool, not only those currently displayed in the ...
void connectFilter(QWidget *filter, QWidget *pkgList, bool hasUpdateSignal=true)
Connect a filter view that provides the usual signals with a package list.
void addPage(const QString &pageLabel, QWidget *pageContent, const QString &internalName)
Add a page with a user-visible "pageLabel", a widget with the page content and an internal name (or I...
zypp::Repository selectedRepo() const
Current selected repository, or if nothing is selected.
Filter view for PackageKit groups.
static int countEnabledRepositories()
Returns the number of enabled repositories.
YQPkgPatchList * patchList() const
Returns this view's selections list.
void showProducts()
Show all products in a popup dialog.
Filter view for packages that made problems during update.
void filter()
Filter according to the view's rules and current selection.
Widget for "tabbed browsing" in packages:
static bool haveInstalledPkgs()
Returns 'true' if there are any installed packages.
void importSelectable(ZyppSel selectable, bool isWanted, const char *kind)
Import one selectable: Set its status according to 'isWanted' based on its old status.
void updateRepositoryUpgradeLabel()
hides or shows the repository upgrade message
YQPkgDiskUsageList * diskUsageList() const
Return the disk usage list widget or 0 if there is none.
QWidget * rightPane() const
Return the right pane.
void currentChanged(QWidget *newPageContent)
Emitted when the current page changes.
void saveSettings()
saves settings of the checkboxes in the option menu
int manualResolvePackageDependencies()
Resolve package dependencies manually.
void keyboardHelp()
Display online help about magic keys.
void enable(bool enable=true)
Enable or disable this exclude rule.
void accept()
Close processing and accept changes.
Display a list of zypp::Patch objects and ( below ) details about the currently selected patch...
void slotRepoUpgradeLabelLinkClicked(const QString &link)
a link in the repo upgrade label was clicked
void repoManager()
Close processing and request start of the repository manager.
Display a pkg's file list.
static std::string iconPath(const std::string &name, int size)
returns the full path for an icon of a given size
Display a list of zypp::Package objects.
Display a list of zypp::Pattern objects.
Filter view for searching within packages.
void symbolHelp()
Display online help about symbols (package status icons).
void installDebugInfoPkgs()
Install available -debuginfo packages for packages that are installed or marked for installation...
void connectPatchList()
Connect the patch list.
Display technical details (very much like 'rpm -qi') for a ZYPP object - the installed instance...
void clear()
Clears the tree-widgets content, resets the optimal column width values.
void pkgExport()
Export all current selection/package states.
void applyExcludeRules()
Apply all exclude rules of this list to all items, including those that are currently excluded...
Filter view for packages that made problems during update.
void help()
Display (generic) online help.
Package version selector: Display a list of available versions from all the different installation so...
void autoResolveDependencies()
Automatically resolve package dependencies if desired (if the "auto check" checkbox is on)...
static bool haveProblematicPackages()
Check if there are any problematic packages at all, i.e.
void addMenus()
Add pulldown menus to the menu bar.
Display a list of zypp::Selection objects.
void clear()
Reset all check boxes (set them all to "off")
void installDevelPkgs()
Install any -devel package for packages that are installed or marked for installation.
void loadSettings()
loads settings for the checkboxes in the option menu
static void showHistoryDialog(QWidget *parent=0)
Static convenience method: Post a History dialog for pkg 'pkgName'.
static bool showChangesDialog(QWidget *parent, const QString &message, const QString &acceptButtonLabel, const QString &rejectButtonLabel=QString::null, Filters f=FilterAutomatic, Options o=OptionAutoAcceptIfEmpty)
Static convenience method: Post a changes dialog with text 'message', a list of changed packages and ...
void showTransactions()
Set up the check boxes so all pending transactions are displayed.
void refresh()
Emitted when the internal data base might have changed and a refresh of all displayed data might be n...
virtual QMenu * addAllInListSubMenu(QMenu *menu)
Add a submenu "All in this list..." to 'menu'.
void installDebugSourcePkgs()
Install available -debugsource packages for packages that are installed or marked for installation...
virtual QMenu * addAllInListSubMenu(QMenu *menu)
Add a submenu "All in this list..." to 'menu'.
Abstract base class for package selectors.
static void showProductDialog(QWidget *parent=0)
Static convenience method: Post a dialog with all products.
void filter()
Filter according to the view's rules and current selection.
void hotkeyInsertPatchFilterView()
Add the "Patches" filter view upon hotkey (F2).
void installSubPkgs(const QString &suffix)
Install any subpackage that ends with 'suffix' for packages that are installed or marked for installa...
void installRecommendedPkgs()
Install recommended packages for packages that are installed.
void makeConnections()
Establish Qt signal / slot connections.
Display technical details ( very much like 'rpm -qi' ) for a zypp::Package object - the installed ins...
void showHistory()
Show dialog for pkgmgr history.
void showAutoPkgList()
Display a list of automatically selected packages (excluding packages contained in any selections tha...
void pkgImport()
Import selection/package states.
bool reject()
Close processing and abandon changes.
int resolveDependencies()
Resolve dependencies (unconditionally) for all resolvables.
void pkgExcludeDebugChanged(bool on)
Enable or disable the package exclude rules (show or suppress -debuginfo or -devel packages) accordin...
int solveAndShowConflicts()
Run the package dependency solver for the current package set and open the conflict dialog if there a...
void globalUpdatePkgForce()
Set the status of all installed packages (all in the pool, not only those currently displayed in the ...
Display a pkg's file list.