summaryrefslogtreecommitdiff
path: root/doc/forum/chroot_issue_when_upgrading/comment_5_9450d3aad28f45370d32a187c891dbf5._comment
blob: 0f4fbb85e9bb116fa8620a5b2d901c0466b45e3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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);
   }


"""]]