From: Alexey Tourbin <at@altlinux.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] Критерий значимости пакета (Was: статистика)
Date: Sun, 26 Aug 2007 03:55:15 +0400
Message-ID: <20070825235515.GG26788@solemn.turbinal> (raw)
In-Reply-To: <20070825224713.GA4091@mw.local.seiros.ru>
[-- Attachment #1.1: Type: text/plain, Size: 2866 bytes --]
On Sun, Aug 26, 2007 at 02:47:13AM +0400, Денис Смирнов wrote:
> On Sun, Aug 26, 2007 at 12:28:58AM +0400, Алексей Турбин wrote:
>
> >> Метод разрабатываемый at@ позволяет решить _одну из_ проблем, которые я
> >> перед собой ставил. Правда более эффективным способом.
> >> Меня ещё волновала реальная устанавливаемость, а это отдельная тема.
> AT> Реальную устанавливаемость можно проверить этим же методом,
> AT> просто написать другой скрипт на lua.
>
> Разумно.
Кстате вот скрипт. Он тоже форкается, для работы нужен пакет lua5-posix
(или положить в текущий каталог posix.so). Кроме того, НУЖЕН ЧМОД.
[at@hint1 ~]$ hsh --init
Components: hasher
Processing pkglists... hasher done
Processing srclists... hasher done
Creating component releases... done
Updating global release file... done
Appending MD5Sum... hasher done
All your base are belong to us!!!
[at@hint1 ~]$ chmod -w /tmp/.private/at/build/aptbox/var/lib/rpm
[at@hint1 ~]$ /tmp/.private/at/build/aptbox/apt-get script -qq ./test.lua
cannot install: TORCS-data-cars
cannot install: Localizer
cannot install: GroupUserFolder
cannot install: pdns-devel
cannot install: pgpool-II-devel
cannot install: gnome-applets-common
cannot install: vegastrike
cannot install: kernel-modules-nvidia_legacy_96xx-ovz-smp
cannot install: libopensync-plugin-evolution2
cannot install: CMF-CMFCalendar
cannot install: xmms-in-xmp
cannot install: gnome-applets-cpufreq
cannot install: gnome-applets-mini-commander
cannot install: horde3
cannot install: CMFFormController
cannot install: gtuxnes
cannot install: python-module-twisted
cannot install: exUserFolder
cannot install: firefox-fxif
cannot install: balsa
cannot install: CMFQuickInstallerTool
cannot install: perl-Geo-IP
cannot install: gnome-sisyphus-minimal
cannot install: mod_geoip
cannot install: gnome-applets-drivemount
cannot install: kernel-modules-nvidia_legacy_71xx-std-smp
cannot install: gnome-sisyphus-default
cannot install: fuse-complete
cannot install: perl-MP3-Tag-utils
cannot install: CMF
cannot install: pyvnc2swf
cannot install: BTreeFolder2
cannot install: heartbeat-devel
cannot install: gnome-applets-gweather-devel
cannot install: libGeoIP-tools
cannot install: gnome-applets-mixer
cannot install: xmp-alsa
cannot install: gnome-applets-stickynotes
cannot install: thunderbird-quotecollapse
cannot install: xmp-arts
cannot install: abiword
...
Как бы проверить правильно работает или нет. И диагностику не знаю как
получить, почему не устанавливается. И как этот аптовский кеш устроен
никакой возможность понять нет, приходится форкаться.
> Правда есть ряд тонкостей которые так не решить.
> Например наличие файловых конфликтов при отсутствии реальных конфликтов.
> Это однако тоже бага, и она у нас вообще никак не тестируется.
Про это потом напишу.
[-- Attachment #1.2: test.lua --]
[-- Type: text/plain, Size: 647 bytes --]
posix = require "posix"
command_consume=1
for _,pkg in ipairs(pkglist()) do
verlist = pkgverlist(pkg)
installed = nil nver = 0
for _,ver in ipairs(verlist) do
if pkgvercur(pkg) == ver then
-- print("already installed: " .. pkgname(pkg) .. "#" ..verstr(ver))
installed = 1
end
nver = nver + 1
end
if not installed and nver > 0 then
pid = posix.fork()
assert(pid >= 0)
if pid == 0 then
markinstall(pkg)
if statinstbroken(pkg) then
print("cannot install: " .. pkgname(pkg))
end
os.exit(0)
else
posix.wait(pid)
end
end
end
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-08-25 23:55 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-21 21:43 [devel] RFC: тестирование входящих пакетов полной пересборкой сизифа Alexey Tourbin
2007-08-22 5:25 ` Денис Смирнов
2007-08-22 8:22 ` Хихин Руслан
2007-08-23 10:19 ` Alexey Tourbin
2007-08-23 11:10 ` Michael Shigorin
2007-08-23 11:16 ` Mykola S. Grechukh
2007-08-23 11:18 ` Mykola S. Grechukh
2007-08-23 11:52 ` [devel] [JT] " Michael Shigorin
2007-08-23 12:10 ` Mykola S. Grechukh
2007-08-23 12:11 ` Michael Shigorin
2007-08-23 12:32 ` Alexey Tourbin
2007-08-23 19:05 ` [devel] статистика Alexey Tourbin
2007-08-23 20:25 ` Alexey Tourbin
2007-08-23 20:37 ` Vadim V. Zhytnikov
2007-08-23 19:51 ` Alexey Tourbin
2007-08-23 21:03 ` Alexey Tourbin
2007-08-23 21:08 ` Хихин Руслан
2007-08-23 21:47 ` Alexey Tourbin
2007-08-23 21:59 ` Alexey Tourbin
2007-08-23 22:19 ` Alexey Tourbin
2007-08-23 12:19 ` [devel] [JT] Re: RFC: тестирование входящих пакетов полной пересборкой сизифа Alexey Tourbin
2007-08-23 13:12 ` Michael Shigorin
2007-08-24 11:15 ` Alexey Tourbin
2007-08-25 9:15 ` Alexey I. Froloff
2007-08-25 9:33 ` Alexey Tourbin
2007-08-25 10:16 ` Alexey I. Froloff
2007-08-25 11:25 ` Igor Vlasenko
2007-08-25 11:36 ` Igor Vlasenko
2007-08-25 11:48 ` Michael Shigorin
2007-08-25 11:53 ` Mykola S. Grechukh
2007-08-25 21:58 ` Igor Vlasenko
2007-08-25 22:43 ` Alexey Tourbin
2007-08-25 23:35 ` Igor Vlasenko
2007-08-26 13:38 ` Alexey I. Froloff
2007-08-25 18:33 ` Alexey Tourbin
2007-08-25 19:32 ` [devel] incominger Michael Shigorin
2007-08-25 20:13 ` [devel] [JT] Re: RFC: тестирование входящих пакетов полной пересборкой сизифа Денис Смирнов
2007-08-23 13:23 ` [devel] " Alexey Tourbin
2007-08-24 12:51 ` Alexey Tourbin
2007-08-24 21:23 ` [devel] статистика [2] Alexey Tourbin
2007-08-25 14:57 ` [devel] Критерий значимости пакета (Was: статистика) Alexey Rusakov
2007-08-25 20:10 ` Денис Смирнов
2007-08-25 20:28 ` Alexey Tourbin
2007-08-25 22:47 ` Денис Смирнов
2007-08-25 23:55 ` Alexey Tourbin [this message]
2007-08-29 20:39 ` [devel] статистика [2] Dmitry V. Levin
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=20070825235515.GG26788@solemn.turbinal \
--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