View | Details | Raw Unified | Return to bug 115315
Collapse All | Expand All

(-)file_not_specified_in_diff (-4 / +21 lines)
Line  Link Here
0
-- src/installation_sources.cc
0
++ src/installation_sources.cc
Lines 84-98 Link Here
84
    }
84
    }
85
85
86
    PMError error = instSrcMgr.scanMedia( sourceIds, url );
86
    PMError error = instSrcMgr.scanMedia( sourceIds, url );
87
    if ( error ) {
87
    if ( error != PMError::E_ok ) {
88
      cerr << error << endl;
88
      cerr << error << endl;
89
      exit( 1 );
89
    }
90
    }
90
    
91
    
91
    InstSrcManager::ISrcIdList::const_iterator it;
92
    InstSrcManager::ISrcIdList::const_iterator it;
92
    for( it = sourceIds.begin(); it != sourceIds.end(); ++it ) {
93
    for( it = sourceIds.begin(); it != sourceIds.end(); ++it ) {
93
      error = instSrcMgr.enableSource( *it );
94
      if ( enableSource ) {
94
      if ( error ) {
95
        error = instSrcMgr.enableSource( *it );
96
      } else {
97
        error = instSrcMgr.setAutoenable(*it, false);
98
        if ( error != PMError::E_ok ) {
99
          cerr << error << endl;
100
          exit( 1 );
101
        }
102
        error = instSrcMgr.disableSource(*it);
103
      }
104
      if ( error != PMError::E_ok ) {
95
        cerr << error << endl;
105
        cerr << error << endl;
106
        exit( 1 );
96
      }
107
      }
97
    }
108
    }
98
  }
109
  }
Lines 105-110 Link Here
105
  InstSrcManager::ISrcIdList::const_iterator it;
116
  InstSrcManager::ISrcIdList::const_iterator it;
106
  for( it = sourceIds.begin(); it != sourceIds.end(); ++it ) {
117
  for( it = sourceIds.begin(); it != sourceIds.end(); ++it ) {
107
    constInstSrcDescrPtr descr = (*it)->descr();
118
    constInstSrcDescrPtr descr = (*it)->descr();
119
120
    if ( descr->default_activate() )
121
      cout << "[x] ";
122
    else
123
      cout << "[ ] "; 
124
       
108
    cout << descr->content_label() << " (" << descr->url() << ")" << endl;
125
    cout << descr->content_label() << " (" << descr->url() << ")" << endl;
109
  }
126
  }
110
127

Return to bug 115315