ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] apt-0.5.15lorg2-alt31 installable.lua
@ 2009-12-17 23:40 Alexey Tourbin
  0 siblings, 0 replies; only message in thread
From: Alexey Tourbin @ 2009-12-17 23:40 UTC (permalink / raw)
  To: devel


[-- Attachment #1.1: Type: text/plain, Size: 803 bytes --]

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.

[-- Attachment #1.2: installable.lua --]
[-- Type: text/plain, Size: 460 bytes --]

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)

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-12-17 23:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-17 23:40 [devel] apt-0.5.15lorg2-alt31 installable.lua Alexey Tourbin

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git