[devel] apt-0.5.15lorg2-alt31 installable.lua

Alexey Tourbin at на altlinux.ru
Чт Дек 17 23:40:01 UTC 2009


apt-0.5.15lorg2-alt31 provides better possibilities for e.g.
checking if every single package in the repo can be installed
on top of basesystem.

$ hsh --init --no-stuff --pkg-build-list=basesystem
...
$ time ./build/aptbox/apt-get -qq --dry-run script ./installable.lua
cannot install: libsundance-devel
cannot install: branding-altlinux-workbench-kde3-settings
cannot install: libtrilinos-new_package-devel-static
cannot install: libsundance-devel-static
cannot install: libtrilinos-devel
cannot install: kile
cannot install: libtrilinos-devel-static
./build/aptbox/apt-get -qq --dry-run script ./installable.lua  317.24s user 1.54s system 97% cpu 5:26.02 total
$

This check should ultimately replace our check for unmet dependencies
in girar-builder.  Especially if I manage to make it even faster.
----------- следующая часть -----------
markinstall("basesystem")
savestate()

for _,pkg in ipairs(pkglist()) do
  verlist = pkgverlist(pkg)
  vercur = pkgvercur(pkg)
  installed = false nver = 0
  for _,ver in ipairs(verlist) do
    if ver == vercur then
      installed = true
    end
    nver = nver + 1
  end
  if not installed and nver > 0 then
    markinstall(pkg)
    if statinstbroken(pkg) then
      print("cannot install: " .. pkgname(pkg))
    end
    restorestate()
  end
end

os.exit(0)
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя     : отсутствует
Тип     : application/pgp-signature
Размер  : 198 байтов
Описание: отсутствует
Url     : <http://lists.altlinux.org/pipermail/devel/attachments/20091218/2e884571/attachment.bin>


Подробная информация о списке рассылки Devel