|
Lines 42-47
from commands import (
Link Here
|
| 42 |
cmd_update, |
42 |
cmd_update, |
| 43 |
) |
43 |
) |
| 44 |
from errors import ( |
44 |
from errors import ( |
|
|
45 |
UpdaterException, |
| 45 |
CannotResolveComponentServerError, |
46 |
CannotResolveComponentServerError, |
| 46 |
ConfigurationError, |
47 |
ConfigurationError, |
| 47 |
DownloadError, |
48 |
DownloadError, |
|
Lines 1167-1176
class UniventionUpdater:
Link Here
|
| 1167 |
stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True) |
1168 |
stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True) |
| 1168 |
(stdout, stderr) = p1.communicate() |
1169 |
(stdout, stderr) = p1.communicate() |
| 1169 |
ud.debug(ud.NETWORK, ud.PROCESS, 'check for updates with "dist-upgrade -s", the returncode is %d' % p1.returncode) |
1170 |
ud.debug(ud.NETWORK, ud.PROCESS, 'check for updates with "dist-upgrade -s", the returncode is %d' % p1.returncode) |
| 1170 |
if p1.returncode == 100: |
|
|
| 1171 |
print stderr |
| 1172 |
ud.debug(ud.NETWORK, ud.PROCESS, 'stderr=%s' % stderr) |
1171 |
ud.debug(ud.NETWORK, ud.PROCESS, 'stderr=%s' % stderr) |
| 1173 |
ud.debug(ud.NETWORK, ud.INFO, 'stdout=%s' % stdout) |
1172 |
ud.debug(ud.NETWORK, ud.INFO, 'stdout=%s' % stdout) |
|
|
1173 |
if p1.returncode == 100: |
| 1174 |
raise UpdaterException(stderr) |
| 1174 |
|
1175 |
|
| 1175 |
new_packages = [] |
1176 |
new_packages = [] |
| 1176 |
upgraded_packages = [] |
1177 |
upgraded_packages = [] |