+
+ //load the packages that will trigger the update flag being set
+ {
+ sat::StringQueue q;
+ filesystem::Pathname needRebootFile = home() / "needreboot";
+ if ( filesystem::PathInfo ( needRebootFile ).isExist() ) {
+ SolvIdentFile file ( needRebootFile );
+ for ( const auto & idstr : file.data() ) {
+ q.push( idstr.id() );
+ }
+ }
+
+ filesystem::Pathname needRebootDir = home() / "needreboot.d";
+ if ( filesystem::PathInfo ( needRebootDir ).isExist() ) {
+ filesystem::DirContent ls;
+ filesystem::readdir( ls, needRebootDir, false );
+
+ for ( const filesystem::DirEntry &entry : ls ) {
+
+ if ( entry.type != filesystem::FT_FILE )
+ continue;
+
+ SolvIdentFile file ( needRebootDir / entry.name );
+ for ( const auto & idstr : file.data() ) {
+ q.push( idstr.id() );
+ }
+ }
+ }
+
+ satpool.setRebootNeededIdents( q );
+ }
+