From: Alexey Tourbin <at@altlinux.ru>
To: devel@altlinux.ru
Subject: [devel] БНОПНЯ по апту
Date: Mon, 22 May 2006 15:55:40 +0400
Message-ID: <20060522115540.GB23861@localhost.localdomain> (raw)
[-- Attachment #1: Type: text/plain, Size: 978 bytes --]
Как установить в чрут все перловые пакеты, кроме тех, которые объективно
установить нельзя?  Вот кусок скрипта.
. trap.sh
hsh -q --no-stuff --initroot-only "$hshdir"
add_trap hsh -q --cleanup-only "$hshdir"
conflicts='perl-Geo-IPfree
perl-Module-Signature
perl-SOAP-Lite-examples
perl-SOAP-Lite
perl-Spreadsheet-WriteExcel
perl-Algorithm-SVM'
# install all perl packages
"$hshdir"/aptbox/apt-cache -q --no-all-names pkgnames perl |
        grep -Fx -v "$conflicts" |
        xargs hsh-install -q -- "$hshdir" >/dev/null
Как видно есть фиксированный список.
Кто знает как написать предикат package_is_installable(pkg)?
Этот предикат должен давать true для тех пакетов, которые "объективно"
можно установить.  Объективная возможность установить не обязательно
влечет за собой "субъективную" возможность установить пакет в группе
других пакетов.  packages_are_installable(pkglist).
Оффтоп: нужна декларативная семантика работы с репозитарием.
[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]
                 reply	other threads:[~2006-05-22 11:55 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=20060522115540.GB23861@localhost.localdomain \
    --to=at@altlinux.ru \
    --cc=devel@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