(command.CommandList
  children: [
    (C {(mirror_style)} {(release)})
    (C {(download_style)} {(apt)} {(var-state)})
    (C {(force_md5)})
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:LIBC spids:[13])
          op: Equal
          rhs: {(libc6)}
          spids: [13]
        )
      ]
      spids: [13]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (C {(Lit_Other '[')} {(DQ ($ VSub_DollarName '$ARCH'))} {(Lit_Other '=')} {(alpha)} 
                  {(Lit_Other ']')}
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:LIBC spids:[34])
                  op: Equal
                  rhs: {(DQ (libc6.1))}
                  spids: [34]
                )
              ]
              spids: [34]
            )
          ]
          spids: [16777215 31]
        )
      ]
      spids: [16777215 39]
    )
    (command.FuncDef
      name: work_out_debs
      body: 
        (command.BraceGroup
          children: [
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:required spids:[50])
                  op: Equal
                  rhs: 
                    {
                      (DQ 
                        (
'base-files base-passwd bash bsdutils debconf-tiny debianutils diff dpkg e2fsprogs fileutils findutils grep gzip hostname ldso libc6 libdb2 libgdbmg1 libncurses5 libnewt0 libpam-modules libpam-runtime libpam0g libpopt0 libreadline4 libstdc++2.10 login makedev mawk modutils mount ncurses-base ncurses-bin passwd perl-5.005-base perl-base procps sed shellutils slang1 sysklogd sysvinit tar textutils update util-linux whiptail'
                        )
                      )
                    }
                  spids: [50]
                )
              ]
              spids: [50]
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:base spids:[57])
                  op: Equal
                  rhs: 
                    {
                      (DQ 
                        (
'adduser ae apt base-config elvis-tiny fbset fdutils gettext-base console-data console-tools console-tools-libs libdb2 libwrap0 locales modconf netbase ftp ppp pppconfig pump tasksel tcpd textutils telnet xviddetect'
                        )
                      )
                    }
                  spids: [57]
                )
              ]
              spids: [57]
            )
            (command.FuncDef
              name: without_package
              body: 
                (command.BraceGroup
                  children: [
                    (command.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: F
                    )
                  ]
                  spids: [69]
                )
              spids: [64 68]
            )
            (command.Case
              to_match: {($ VSub_DollarName '$ARCH')}
              arms: [
                (case_arm
                  pat_list: [{(DQ (alpha))}]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:required spids:[132])
                          op: Equal
                          rhs: 
                            {
                              (DQ 
                                (word_part.CommandSubPart
                                  command_list: 
                                    (command.CommandList
                                      children: [
                                        (C {(without_package)} {(DQ (libc6))} 
                                          {(DQ ($ VSub_DollarName '$required'))}
                                        )
                                      ]
                                    )
                                  left_token: <Left_CommandSub '$('>
                                  spids: [134 144]
                                ) (' libc6.1')
                              )
                            }
                          spids: [132]
                        )
                      ]
                      spids: [132]
                    )
                  ]
                  spids: [126 129 149 16777215]
                )
                (case_arm
                  pat_list: [{(DQ (i386))}]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:base spids:[158])
                          op: Equal
                          rhs: 
                            {
                              (DQ ($ VSub_DollarName '$base') 
                                (
' fdflush isapnptools lilo mbr pciutils pcmcia-cs psmisc setserial syslinux'
                                )
                              )
                            }
                          spids: [158]
                        )
                      ]
                      spids: [158]
                    )
                  ]
                  spids: [152 155 165 16777215]
                )
                (case_arm pat_list:[{(Lit_Other '*')}] spids:[168 169 16777215 180])
              ]
              spids: [119 123 180]
            )
          ]
          spids: [47]
        )
      spids: [42 46]
    )
    (command.FuncDef
      name: first_stage_install
      body: 
        (command.BraceGroup
          children: [
            (C {(extract)} {($ VSub_DollarName '$required')})
            (command.SimpleCommand
              words: [{(Lit_Other ':')}]
              redirects: [
                (redir.Redir
                  op: <Redir_Great '>'>
                  fd: 16777215
                  arg_word: {(DQ ($ VSub_DollarName '$TARGET') (/var/lib/dpkg/status))}
                )
              ]
            )
            (command.SimpleCommand
              words: [{(echo)}]
              redirects: [
                (redir.Redir
                  op: <Redir_Great '>'>
                  fd: 16777215
                  arg_word: {(DQ ($ VSub_DollarName '$TARGET') (/var/lib/dpkg/available))}
                )
              ]
            )
            (C {(setup_etc)})
            (command.SimpleCommand
              words: [{(echo)} {(SQ <'# UNCONFIGURED FSTAB FOR BASE SYSTEM'>)}]
              redirects: [
                (redir.Redir
                  op: <Redir_Great '>'>
                  fd: 16777215
                  arg_word: {(DQ ($ VSub_DollarName '$TARGET') (/etc/fstab))}
                )
              ]
            )
            (command.Sentence
              child: 
                (C {(chown)} {(0) (Lit_Other ':') (0)} {(DQ ($ VSub_DollarName '$TARGET') (/etc/fstab))})
              terminator: <Op_Semi ';'>
            )
            (C {(chmod)} {(644)} {(DQ ($ VSub_DollarName '$TARGET') (/etc/fstab))})
            (command.FuncDef
              name: x_feign_install
              body: 
                (command.BraceGroup
                  children: [
                    (command.Assignment
                      keyword: Assign_Local
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:pkg spids:[269])
                          op: Equal
                          rhs: {($ VSub_Number '$1')}
                          spids: [269]
                        )
                      ]
                      spids: [267]
                    )
                    (command.Assignment
                      keyword: Assign_Local
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:deb spids:[275])
                          op: Equal
                          rhs: 
                            {
                              (DQ 
                                (word_part.CommandSubPart
                                  command_list: 
                                    (command.CommandList
                                      children: [(C {(debfor)} {($ VSub_DollarName '$pkg')})]
                                    )
                                  left_token: <Left_CommandSub '$('>
                                  spids: [277 281]
                                )
                              )
                            }
                          spids: [275]
                        )
                      ]
                      spids: [273]
                    )
                    (command.Assignment
                      keyword: Assign_Local
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:ver spids:[287])
                          op: Equal
                          rhs: 
                            {
                              (DQ 
                                (word_part.CommandSubPart
                                  command_list: 
                                    (command.CommandList
                                      children: [
                                        (C {(extract_deb_field)} 
                                          {
                                            (DQ ($ VSub_DollarName '$TARGET') (/) 
                                              ($ VSub_DollarName '$deb')
                                            )
                                          } {(Version)}
                                        )
                                      ]
                                    )
                                  left_token: <Left_CommandSub '$('>
                                  spids: [289 299]
                                )
                              )
                            }
                          spids: [287]
                        )
                      ]
                      spids: [285]
                    )
                    (C {(mkdir)} {(-p)} {(DQ ($ VSub_DollarName '$TARGET') (/var/lib/dpkg/info))})
                    (command.SimpleCommand
                      words: [
                        {(echo)}
                        {
                          (DQ ('Package: ') ($ VSub_DollarName '$pkg') ('\n') ('Version: ') 
                            ($ VSub_DollarName '$ver') ('\n') ('Status: install ok installed')
                          )
                        }
                      ]
                      redirects: [
                        (redir.Redir
                          op: <Redir_DGreat '>>'>
                          fd: 16777215
                          arg_word: {(DQ ($ VSub_DollarName '$TARGET') (/var/lib/dpkg/status))}
                        )
                      ]
                    )
                    (C {(touch)} 
                      {
                        (DQ ($ VSub_DollarName '$TARGET') (/var/lib/dpkg/info/) (${ VSub_Name pkg) 
                          (.list)
                        )
                      }
                    )
                  ]
                  spids: [264]
                )
              spids: [259 263]
            )
            (C {(setup_devices)})
            (C {(x_feign_install)} {(dpkg)})
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (C {(Lit_Other '[')} {(-e)} 
                          {(DQ ($ VSub_DollarName '$TARGET') (/usr/bin/perl-5.005.dist))} {(Lit_Other ']')}
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (C {(mv)} {(DQ ($ VSub_DollarName '$TARGET') (/usr/bin/perl-5.005.dist))} 
                      {(DQ ($ VSub_DollarName '$TARGET') (/usr/bin/perl-5.005))}
                    )
                  ]
                  spids: [16777215 376]
                )
              ]
              spids: [16777215 392]
            )
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (C {(Lit_Other '[')} {(KW_Bang '!')} {(-e)} 
                          {(DQ ($ VSub_DollarName '$TARGET') (/usr/bin/perl))} {(Lit_Other ']')}
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (C {(ln)} {(-sf)} {(perl-5.005)} {(DQ ($ VSub_DollarName '$TARGET') (/usr/bin/perl))})
                  ]
                  spids: [16777215 411]
                )
              ]
              spids: [16777215 426]
            )
          ]
          spids: [190]
        )
      spids: [185 189]
    )
    (command.FuncDef
      name: second_stage_install
      body: 
        (command.BraceGroup
          children: [
            (command.FuncDef
              name: x_core_install
              body: 
                (command.BraceGroup
                  children: [
                    (C {(in_target)} {(dpkg)} {(--force-depends)} {(--install)} 
                      {
                        (word_part.CommandSubPart
                          command_list: 
                            (command.CommandList
                              children: [(C {(debfor)} {(DQ ($ VSub_At '$@'))})]
                            )
                          left_token: <Left_CommandSub '$('>
                          spids: [455 461]
                        )
                      }
                    )
                  ]
                  spids: [444]
                )
              spids: [439 443]
            )
            (C {(export)} {(Lit_VarLike 'DEBIAN_FRONTEND=') (Noninteractive)})
            (C {(setup_proc)})
            (C {(ln)} {(DQ ($ VSub_DollarName '$TARGET') (/sbin/ldconfig.new))} 
              {(DQ ($ VSub_DollarName '$TARGET') (/sbin/ldconfig))}
            )
            (C {(in_target)} {(/sbin/ldconfig)})
            (C {(x_core_install)} {(base-files)} {(base-passwd)} {(ldso)})
            (C {(x_core_install)} {(dpkg)})
            (C {(ln)} {(-sf)} {(/usr/share/zoneinfo/UTC)} 
              {(DQ ($ VSub_DollarName '$TARGET') (/etc/localtime))}
            )
            (C {(x_core_install)} {($ VSub_DollarName '$LIBC')})
            (command.Pipeline
              children: [(C {(smallyes)} {(SQ )}) (C {(x_core_install)} {(perl-5.005-base)})]
              negated: F
            )
            (C {(x_core_install)} {(mawk)})
            (C {(x_core_install)} {(debconf-tiny)})
            (C {(in_target)} {(dpkg-preconfigure)} 
              {
                (word_part.CommandSubPart
                  command_list: 
                    (command.CommandList
                      children: [
                        (C {(debfor)} {($ VSub_DollarName '$required')} {($ VSub_DollarName '$base')})
                      ]
                    )
                  left_token: <Left_CommandSub '$('>
                  spids: [557 563]
                )
              }
            )
            (C {(repeatn)} {(5)} {(in_target)} {(dpkg)} {(--force-depends)} {(--unpack)} 
              {
                (word_part.CommandSubPart
                  command_list: 
                    (command.CommandList
                      children: [(C {(debfor)} {($ VSub_DollarName '$required')})]
                    )
                  left_token: <Left_CommandSub '$('>
                  spids: [579 583]
                )
              }
            )
            (C {(mv)} {(DQ ($ VSub_DollarName '$TARGET') (/sbin/start-stop-daemon))} 
              {(DQ ($ VSub_DollarName '$TARGET') (/sbin/start-stop-daemon.REAL))}
            )
            (C {(cp)} {(DQ ($ VSub_DollarName '$TARGET') (/bin/true))} 
              {(DQ ($ VSub_DollarName '$TARGET') (/sbin/start-stop-daemon))}
            )
            (C {(setup_dselect_method)} {(apt)})
            (C {(in_target)} {(dpkg)} {(--configure)} {(--pending)} {(--force-configure-any)} 
              {(--force-depends)}
            )
            (command.Pipeline
              children: [
                (C {(smallyes)} {(SQ )})
                (C {(repeatn)} {(5)} {(in_target)} {(dpkg)} {(--force-auto-select)} {(--force-overwrite)} 
                  {(--skip-same-version)} {(--install)} 
                  {
                    (word_part.CommandSubPart
                      command_list: 
                        (command.CommandList
                          children: [(C {(debfor)} {($ VSub_DollarName '$base')})]
                        )
                      left_token: <Left_CommandSub '$('>
                      spids: [657 661]
                    )
                  }
                )
              ]
              negated: F
            )
            (C {(mv)} {(DQ ($ VSub_DollarName '$TARGET') (/sbin/start-stop-daemon.REAL))} 
              {(DQ ($ VSub_DollarName '$TARGET') (/sbin/start-stop-daemon))}
            )
          ]
          spids: [436]
        )
      spids: [431 435]
    )
  ]
)