(CommandList
  children: [
    (C {(mirror_style)} {(release)})
    (C {(download_style)} {(apt)})
    (C {(force_md5)})
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:LIBC) op:Equal rhs:{(libc6)} spids:[11])]
      spids: [11]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: 
                (AndOr
                  children: [
                    (C {(Lit_Other '[')} {(DQ ($ VSub_Name '$ARCH'))} {(Lit_Other '=')} {(DQ (alpha))} 
                      {(Lit_Other ']')}
                    )
                    (C {(Lit_Other '[')} {(DQ ($ VSub_Name '$ARCH'))} {(Lit_Other '=')} {(DQ (ia64))} 
                      {(Lit_Other ']')}
                    )
                  ]
                  op_id: Op_DPipe
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:LIBC) op:Equal rhs:{(DQ (libc6.1))} spids:[50])]
              spids: [50]
            )
          ]
          spids: [-1 47]
        )
      ]
      spids: [-1 55]
    )
    (FuncDef
      name: work_out_debs
      body: 
        (BraceGroup
          children: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:required)
                  op: Equal
                  rhs: 
                    {
                      (DQ 
                        (
'base-files base-passwd bash bsdutils coreutils debianutils diff dpkg dselect e2fslibs e2fsprogs findutils gcc-3.3-base grep gzip hostname initscripts libacl1 libattr1 libblkid1 libc6 libcap1 libcomerr2 libdb1-compat libdb3 libgcc1 libncurses5 libpam-modules libpam-runtime libpam0g libss2 libstdc++5 libuuid1 login mawk mount ncurses-base ncurses-bin passwd perl-base sed slang1a-utf8 sysv-rc sysvinit tar util-linux zlib1g'
                        )
                      )
                    }
                  spids: [67]
                )
              ]
              spids: [67]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:base)
                  op: Equal
                  rhs: 
                    {
                      (DQ 
                        (
'apt binutils cpio cpp cpp-3.3 dpkg-dev g++ g++-3.3 gcc gcc-3.3 libc6-dev libdb4.2 libgdbm3 libstdc++5-3.3-dev linux-kernel-headers make patch perl perl-modules'
                        )
                      )
                    }
                  spids: [74]
                )
              ]
              spids: [74]
            )
            (FuncDef
              name: without_package
              body: 
                (BraceGroup
                  children: [
                    (Pipeline
                      children: [
                        (C {(echo)} {(DQ ($ VSub_Number '$2'))})
                        (C {(tr)} {(SQ <' '>)} {(SQ <'\\n'>)})
                        (C {(grep)} {(-v)} {(DQ ('^') ($ VSub_Number '$1') (Lit_Other '$'))})
                        (C {(tr)} {(SQ <'\\n'>)} {(SQ <' '>)})
                      ]
                      negated: False
                    )
                  ]
                  spids: [86]
                )
              spids: [81 85]
            )
            (FuncDef
              name: subst_package
              body: 
                (BraceGroup
                  children: [
                    (Pipeline
                      children: [
                        (C {(echo)} {(DQ ($ VSub_Number '$3'))})
                        (C {(tr)} {(SQ <' '>)} {(SQ <'\\n'>)})
                        (C {(sed)} 
                          {
                            (DQ ('s/^') ($ VSub_Number '$1') (Lit_Other '$') (/) ($ VSub_Number '$2') (/))
                          }
                        )
                        (C {(tr)} {(SQ <'\\n'>)} {(SQ <' '>)})
                      ]
                      negated: False
                    )
                  ]
                  spids: [140]
                )
              spids: [135 139]
            )
            (Case
              to_match: {($ VSub_Name '$ARCH')}
              arms: [
                (case_arm
                  pat_list: [{(DQ (alpha))}]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:required)
                          op: Equal
                          rhs: 
                            {
                              (DQ 
                                (CommandSubPart
                                  command_list: 
                                    (CommandList
                                      children: [
                                        (C {(subst_package)} {(DQ (libc6))} {(DQ (libc6.1))} 
                                          {(DQ ($ VSub_Name '$required'))}
                                        )
                                      ]
                                    )
                                  left_token: <Left_CommandSub '$('>
                                  spids: [206 220]
                                )
                              )
                            }
                          spids: [204]
                        )
                      ]
                      spids: [204]
                    )
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:base)
                          op: Equal
                          rhs: 
                            {
                              (DQ 
                                (CommandSubPart
                                  command_list: 
                                    (CommandList
                                      children: [
                                        (C {(subst_package)} {(DQ (libc6-dev))} {(DQ (libc6.1-dev))} 
                                          {(DQ ($ VSub_Name '$base'))}
                                        )
                                      ]
                                    )
                                  left_token: <Left_CommandSub '$('>
                                  spids: [226 240]
                                )
                              )
                            }
                          spids: [224]
                        )
                      ]
                      spids: [224]
                    )
                  ]
                  spids: [199 201 244 -1]
                )
                (case_arm pat_list:[{(DQ (arm))}] spids:[248250253-1])
                (case_arm pat_list:[{(DQ (i386))}] spids:[257259262-1])
                (case_arm
                  pat_list: [{(DQ (ia64))}]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:required)
                          op: Equal
                          rhs: 
                            {
                              (DQ 
                                (CommandSubPart
                                  command_list: 
                                    (CommandList
                                      children: [
                                        (C {(subst_package)} {(DQ (libc6))} {(DQ (libc6.1))} 
                                          {(DQ ($ VSub_Name '$required'))}
                                        )
                                      ]
                                    )
                                  left_token: <Left_CommandSub '$('>
                                  spids: [273 287]
                                )
                              )
                            }
                          spids: [271]
                        )
                      ]
                      spids: [271]
                    )
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:base)
                          op: Equal
                          rhs: 
                            {
                              (DQ 
                                (CommandSubPart
                                  command_list: 
                                    (CommandList
                                      children: [
                                        (C {(subst_package)} {(DQ (libc6-dev))} {(DQ (libc6.1-dev))} 
                                          {(DQ ($ VSub_Name '$base'))}
                                        )
                                      ]
                                    )
                                  left_token: <Left_CommandSub '$('>
                                  spids: [293 307]
                                )
                              )
                            }
                          spids: [291]
                        )
                      ]
                      spids: [291]
                    )
                  ]
                  spids: [266 268 311 -1]
                )
                (case_arm pat_list:[{(DQ (m68k))}] spids:[315317320-1])
                (case_arm pat_list:[{(DQ (powerpc))}] spids:[324326329-1])
                (case_arm pat_list:[{(DQ (sparc))}] spids:[333335338-1])
                (case_arm pat_list:[{(DQ (mips))}] spids:[342344347-1])
                (case_arm pat_list:[{(DQ (mipsel))}] spids:[351353356-1])
                (case_arm pat_list:[{(DQ (hppa))}] spids:[360362365-1])
                (case_arm pat_list:[{(s390)}{(s390x)}] spids:[368371374-1])
                (case_arm pat_list:[{(sh) (Lit_Other '*')}] spids:[377379382-1])
                (case_arm pat_list:[{(Lit_Other '*')}] spids:[385386393-1])
              ]
              spids: [191 195 396]
            )
          ]
          spids: [63]
        )
      spids: [58 62]
    )
    (FuncDef
      name: first_stage_install
      body: 
        (BraceGroup
          children: [
            (C {(extract)} {($ VSub_Name '$required')})
            (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name '$TARGET') (/var/lib/dpkg))})
            (SimpleCommand
              words: [{(Lit_Other ':')}]
              redirects: [
                (Redir
                  op_id: Redir_Great
                  fd: -1
                  arg_word: {(DQ ($ VSub_Name '$TARGET') (/var/lib/dpkg/status))}
                  spids: [427]
                )
              ]
            )
            (SimpleCommand
              words: [{(echo)}]
              redirects: [
                (Redir
                  op_id: Redir_Great
                  fd: -1
                  arg_word: {(DQ ($ VSub_Name '$TARGET') (/var/lib/dpkg/available))}
                  spids: [436]
                )
              ]
            )
            (C {(setup_etc)})
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (C {(Lit_Other '[')} {(KW_Bang '!')} {(-e)} 
                          {(DQ ($ VSub_Name '$TARGET') (/etc/fstab))} {(Lit_Other ']')}
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (SimpleCommand
                      words: [{(echo)} {(SQ <'# UNCONFIGURED FSTAB FOR BASE SYSTEM'>)}]
                      redirects: [
                        (Redir
                          op_id: Redir_Great
                          fd: -1
                          arg_word: {(DQ ($ VSub_Name '$TARGET') (/etc/fstab))}
                          spids: [472]
                        )
                      ]
                    )
                    (Sentence
                      child: 
                        (C {(chown)} {(0) (Lit_Other ':') (0)} 
                          {(DQ ($ VSub_Name '$TARGET') (/etc/fstab))}
                        )
                      terminator: <Op_Semi ';'>
                    )
                    (C {(chmod)} {(644)} {(DQ ($ VSub_Name '$TARGET') (/etc/fstab))})
                  ]
                  spids: [-1 463]
                )
              ]
              spids: [-1 502]
            )
            (C {(setup_devices)})
            (FuncDef
              name: x_feign_install
              body: 
                (BraceGroup
                  children: [
                    (Assignment
                      keyword: Assign_Local
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:pkg)
                          op: Equal
                          rhs: {(DQ ($ VSub_Number '$1'))}
                          spids: [520]
                        )
                      ]
                      spids: [518]
                    )
                    (Assignment
                      keyword: Assign_Local
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:deb)
                          op: Equal
                          rhs: 
                            {
                              (DQ 
                                (CommandSubPart
                                  command_list: 
                                    (CommandList
                                      children: [(C {(debfor)} {($ VSub_Name '$pkg')})]
                                    )
                                  left_token: <Left_CommandSub '$('>
                                  spids: [530 534]
                                )
                              )
                            }
                          spids: [528]
                        )
                      ]
                      spids: [526]
                    )
                    (Assignment
                      keyword: Assign_Local
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:ver)
                          op: Equal
                          rhs: 
                            {
                              (DQ 
                                (CommandSubPart
                                  command_list: 
                                    (CommandList
                                      children: [
                                        (C {(extract_deb_field)} 
                                          {(DQ ($ VSub_Name '$TARGET') (/) ($ VSub_Name '$deb'))} {(Version)}
                                        )
                                      ]
                                    )
                                  left_token: <Left_CommandSub '$('>
                                  spids: [542 552]
                                )
                              )
                            }
                          spids: [540]
                        )
                      ]
                      spids: [538]
                    )
                    (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name '$TARGET') (/var/lib/dpkg/info))})
                    (SimpleCommand
                      words: [
                        {(echo)}
                        {
                          (DQ ('Package: ') ($ VSub_Name '$pkg') ('\n') ('Version: ') 
                            ($ VSub_Name '$ver') ('\n') ('Status: install ok installed')
                          )
                        }
                      ]
                      redirects: [
                        (Redir
                          op_id: Redir_DGreat
                          fd: -1
                          arg_word: {(DQ ($ VSub_Name '$TARGET') (/var/lib/dpkg/status))}
                          spids: [581]
                        )
                      ]
                    )
                    (C {(touch)} 
                      {(DQ ($ VSub_Name '$TARGET') (/var/lib/dpkg/info/) (${ VSub_Name pkg) (.list))}
                    )
                  ]
                  spids: [515]
                )
              spids: [510 514]
            )
            (C {(x_feign_install)} {(dpkg)})
          ]
          spids: [406]
        )
      spids: [401 405]
    )
    (FuncDef
      name: second_stage_install
      body: 
        (BraceGroup
          children: [
            (FuncDef
              name: x_core_install
              body: 
                (BraceGroup
                  children: [
                    (Pipeline
                      children: [
                        (C {(smallyes)} {(SQ )})
                        (C {(in_target)} {(dpkg)} {(--force-depends)} {(--install)} 
                          {
                            (CommandSubPart
                              command_list: 
                                (CommandList
                                  children: [(C {(debfor)} {(DQ ($ VSub_At '$@'))})]
                                )
                              left_token: <Left_CommandSub '$('>
                              spids: [644 650]
                            )
                          }
                        )
                      ]
                      negated: False
                    )
                  ]
                  spids: [626]
                )
              spids: [621 625]
            )
            (FuncDef
              name: p
              body: 
                (BraceGroup
                  children: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:baseprog)
                          op: Equal
                          rhs: 
                            {
                              (DQ 
                                (ArithSubPart
                                  anode: 
                                    (ArithBinary
                                      op_id: Arith_Plus
                                      left: (ArithWord w:{($ VSub_Name '$baseprog')})
                                      right: 
                                        (ArithWord
                                          w: 
                                            {
                                              (BracedVarSub
                                                token: <VSub_Number 1>
                                                suffix_op: 
                                                  (StringUnary
                                                    op_id: VTest_ColonHyphen
                                                    arg_word: {(1)}
                                                  )
                                                spids: [672 676]
                                              )
                                            }
                                        )
                                    )
                                  spids: [667 678]
                                )
                              )
                            }
                          spids: [665]
                        )
                      ]
                      spids: [665]
                    )
                  ]
                  spids: [662]
                )
              spids: [657 661]
            )
            (C {(setup_proc)})
            (C {(in_target)} {(/sbin/ldconfig)})
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:DEBIAN_FRONTEND)
                  op: Equal
                  rhs: {(noninteractive)}
                  spids: [695]
                )
              ]
              spids: [695]
            )
            (C {(export)} {(DEBIAN_FRONTEND)})
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:baseprog) op:Equal rhs:{(0)} spids:[705])]
              spids: [705]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:bases) op:Equal rhs:{(40)} spids:[709])]
              spids: [709]
            )
            (Sentence child:(C {(p)}) terminator:<Op_Semi ';'>)
            (C {(progress)} {($ VSub_Name '$baseprog')} {($ VSub_Name '$bases')} {(INSTBASE)} 
              {(DQ ('Installing base system'))}
            )
            (C {(info)} {(INSTCORE)} {(DQ ('Installing core packages...'))})
            (Sentence child:(C {(p)}) terminator:<Op_Semi ';'>)
            (C {(progress)} {($ VSub_Name '$baseprog')} {($ VSub_Name '$bases')} {(INSTBASE)} 
              {(DQ ('Installing base system'))}
            )
            (C {(ln)} {(-sf)} {(mawk)} {(DQ ($ VSub_Name '$TARGET') (/usr/bin/awk))})
            (C {(x_core_install)} {(base-files)} {(base-passwd)})
            (Sentence child:(C {(p)}) terminator:<Op_Semi ';'>)
            (C {(progress)} {($ VSub_Name '$baseprog')} {($ VSub_Name '$bases')} {(INSTBASE)} 
              {(DQ ('Installing base system'))}
            )
            (C {(x_core_install)} {(dpkg)})
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (C {(Lit_Other '[')} {(KW_Bang '!')} {(-e)} 
                          {(DQ ($ VSub_Name '$TARGET') (/etc/localtime))} {(Lit_Other ']')}
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (C {(ln)} {(-sf)} {(/usr/share/zoneinfo/UTC)} 
                      {(DQ ($ VSub_Name '$TARGET') (/etc/localtime))}
                    )
                  ]
                  spids: [-1 822]
                )
              ]
              spids: [-1 837]
            )
            (Sentence child:(C {(p)}) terminator:<Op_Semi ';'>)
            (C {(progress)} {($ VSub_Name '$baseprog')} {($ VSub_Name '$bases')} {(INSTBASE)} 
              {(DQ ('Installing base system'))}
            )
            (C {(x_core_install)} {($ VSub_Name '$LIBC')})
            (Sentence child:(C {(p)}) terminator:<Op_Semi ';'>)
            (C {(progress)} {($ VSub_Name '$baseprog')} {($ VSub_Name '$bases')} {(INSTBASE)} 
              {(DQ ('Installing base system'))}
            )
            (C {(x_core_install)} {(perl-base)})
            (Sentence child:(C {(p)}) terminator:<Op_Semi ';'>)
            (C {(progress)} {($ VSub_Name '$baseprog')} {($ VSub_Name '$bases')} {(INSTBASE)} 
              {(DQ ('Installing base system'))}
            )
            (C {(rm)} {(DQ ($ VSub_Name '$TARGET') (/usr/bin/awk))})
            (C {(x_core_install)} {(mawk)})
            (Sentence child:(C {(p)}) terminator:<Op_Semi ';'>)
            (C {(progress)} {($ VSub_Name '$baseprog')} {($ VSub_Name '$bases')} {(INSTBASE)} 
              {(DQ ('Installing base system'))}
            )
            (C {(info)} {(UNPACKREQ)} {(DQ ('Unpacking required packages...'))})
            (Sentence child:(C {(p)}) terminator:<Op_Semi ';'>)
            (C {(progress)} {($ VSub_Name '$baseprog')} {($ VSub_Name '$bases')} {(INSTBASE)} 
              {(DQ ('Installing base system'))}
            )
            (Pipeline
              children: [
                (C {(smallyes)} {(SQ )})
                (C {(repeatn)} {(5)} {(in_target_failmsg)} {(UNPACK_REQ_FAIL_FIVE)} 
                  {
                    (DQ 
                      (
'Failure while unpacking required packages.  This will be attempted up to five times.'
                      )
                    )
                  } {(DQ )} {(dpkg)} {(--force-depends)} {(--unpack)} 
                  {
                    (CommandSubPart
                      command_list: 
                        (CommandList
                          children: [(C {(debfor)} {($ VSub_Name '$required')})]
                        )
                      left_token: <Left_CommandSub '$('>
                      spids: [999 1003]
                    )
                  }
                )
              ]
              negated: False
            )
            (Sentence child:(C {(p)} {(10)}) terminator:<Op_Semi ';'>)
            (C {(progress)} {($ VSub_Name '$baseprog')} {($ VSub_Name '$bases')} {(INSTBASE)} 
              {(DQ ('Installing base system'))}
            )
            (C {(info)} {(CONFREQ)} {(DQ ('Configuring required packages...'))})
            (C {(mv)} {(DQ ($ VSub_Name '$TARGET') (/sbin/start-stop-daemon))} 
              {(DQ ($ VSub_Name '$TARGET') (/sbin/start-stop-daemon.REAL))}
            )
            (SimpleCommand
              words: [
                {(echo)}
                {
                  (DQ ('#!/bin/sh\n') ('echo\n') ('echo ') 
                    (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ('Warning: Fake start-stop-daemon called, doing nothing') 
                    (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>)
                  )
                }
              ]
              redirects: [
                (Redir
                  op_id: Redir_Great
                  fd: -1
                  arg_word: {(DQ ($ VSub_Name '$TARGET') (/sbin/start-stop-daemon))}
                  spids: [1063]
                )
              ]
            )
            (C {(chmod)} {(755)} {(DQ ($ VSub_Name '$TARGET') (/sbin/start-stop-daemon))})
            (C {(setup_dselect_method)} {(apt)})
            (Sentence child:(C {(p)}) terminator:<Op_Semi ';'>)
            (C {(progress)} {($ VSub_Name '$baseprog')} {($ VSub_Name '$bases')} {(INSTBASE)} 
              {(DQ ('Installing base system'))}
            )
            (Pipeline
              children: [
                (C {(smallyes)} {(SQ )})
                (C {(in_target_failmsg)} {(CONF_REQ_FAIL)} 
                  {(DQ ('Failure while configuring required packages.'))} {(DQ )} {(dpkg)} {(--configure)} {(--pending)} {(--force-configure-any)} {(--force-depends)}
                )
              ]
              negated: False
            )
            (Sentence child:(C {(p)} {(10)}) terminator:<Op_Semi ';'>)
            (C {(progress)} {($ VSub_Name '$baseprog')} {($ VSub_Name '$bases')} {(INSTBASE)} 
              {(DQ ('Installing base system'))}
            )
            (C {(info)} {(INSTBASE)} {(DQ ('Installing base packages...'))})
            (Sentence child:(C {(p)}) terminator:<Op_Semi ';'>)
            (C {(progress)} {($ VSub_Name '$baseprog')} {($ VSub_Name '$bases')} {(INSTBASE)} 
              {(DQ ('Installing base system'))}
            )
            (Pipeline
              children: [
                (C {(smallyes)} {(SQ )})
                (C {(repeatn)} {(5)} {(in_target_failmsg)} {(INST_BASE_FAIL_FIVE)} 
                  {
                    (DQ 
                      (
'Failure while installing base packages.  This will be re-attempted up to five times.'
                      )
                    )
                  } {(DQ )} {(dpkg)} {(--force-auto-select)} {(--force-overwrite)} {(--force-confold)} {(--skip-same-version)} 
                  {(--unpack)} 
                  {
                    (CommandSubPart
                      command_list: (CommandList children:[(C {(debfor)} {($ VSub_Name '$base')})])
                      left_token: <Left_CommandSub '$('>
                      spids: [1221 1225]
                    )
                  }
                )
              ]
              negated: False
            )
            (Pipeline
              children: [
                (C {(smallyes)} {(SQ )})
                (C {(repeatn)} {(5)} {(in_target_failmsg)} {(CONF_BASE_FAIL_FIVE)} 
                  {
                    (DQ ('Failure while configuring base packages.  This will be attempted 5 times.'))
                  } {(DQ )} {(dpkg)} {(--force-confold)} {(--skip-same-version)} {(--configure)} {(-a)}
                )
              ]
              negated: False
            )
            (Sentence child:(C {(p)} {(9)}) terminator:<Op_Semi ';'>)
            (C {(progress)} {($ VSub_Name '$baseprog')} {($ VSub_Name '$bases')} {(INSTBASE)} 
              {(DQ ('Installing base system'))}
            )
            (C {(mv)} {(DQ ($ VSub_Name '$TARGET') (/sbin/start-stop-daemon.REAL))} 
              {(DQ ($ VSub_Name '$TARGET') (/sbin/start-stop-daemon))}
            )
            (C {(progress)} {($ VSub_Name '$bases')} {($ VSub_Name '$bases')} {(INSTBASE)} 
              {(DQ ('Installing base system'))}
            )
            (C {(info)} {(BASESUCCESS)} {(DQ ('Base system installed successfully.'))})
          ]
          spids: [618]
        )
      spids: [613 617]
    )
  ]
)