diff options
| author | picca <picca@web> | 2016-03-29 21:39:42 +0000 |
|---|---|---|
| committer | admin <admin@branchable.com> | 2016-03-29 21:39:42 +0000 |
| commit | 65242c9b280dce4baffb78ea313887159bf67d19 (patch) | |
| tree | e93ae72e708841974778fafca8e9e6ef39af3508 /doc | |
| parent | 6a429dccd8d9cc184198d2bae0a7da2256d3153d (diff) | |
Added a comment
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/forum/chroot_issue_when_upgrading/comment_5_9450d3aad28f45370d32a187c891dbf5._comment | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/forum/chroot_issue_when_upgrading/comment_5_9450d3aad28f45370d32a187c891dbf5._comment b/doc/forum/chroot_issue_when_upgrading/comment_5_9450d3aad28f45370d32a187c891dbf5._comment new file mode 100644 index 00000000..0f4fbb85 --- /dev/null +++ b/doc/forum/chroot_issue_when_upgrading/comment_5_9450d3aad28f45370d32a187c891dbf5._comment @@ -0,0 +1,25 @@ +[[!comment format=mdwn + username="picca" + subject="comment 5" + date="2016-03-29T21:39:42Z" + content=""" +Here the c++ code of apt + + // See if we need to abort with a dirty journal + if (CheckUpdates() == true) + { + close(d->LockFD); + d->LockFD = -1; + const char *cmd; + if (getenv(\"SUDO_USER\") != NULL) + cmd = \"sudo dpkg --configure -a\"; + else + cmd = \"dpkg --configure -a\"; + // TRANSLATORS: the %s contains the recovery command, usually + // dpkg --configure -a + return _error->Error(_(\"dpkg was interrupted, you must manually \" + \"run '%s' to correct the problem. \"), cmd); + } + + +"""]] |
