From: Alexey Tourbin <at@altlinux.ru> To: devel@lists.altlinux.org Subject: [devel] apt-0.5.15lorg2-alt31 installable.lua Date: Fri, 18 Dec 2009 02:40:01 +0300 Message-ID: <20091217234001.GP9864@altlinux.org> (raw) [-- 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 --]
reply other threads:[~2009-12-17 23:40 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20091217234001.GP9864@altlinux.org \ --to=at@altlinux.ru \ --cc=devel@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
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