[devel] [Fwd: [Synaptic-devel] experimental task support added]

Sviataslau Svirydau =?iso-8859-1?q?Sviataslau=5FSvirydau_=CE=C1_epam=2Ecom?=
Пн Июл 19 13:07:23 MSD 2004


Приветствую,

В синаптике добавляют возможность выполнять установку пакетов, 
основываясь на задачах, которые необходимо будет выполнять пользователю.
У нас в той или иной форме такой подход уже не раз обсуждался, как одно 
из следствий - наличие у нас чисто виртуальных пакетов.
Сейчас появляется возможность приделать для этого еще и более-менее 
нормальное лицо.
В оригинале используется Debian's tasksel.
Теоритически, не составляет труда это прикрутить в любой системе. Нужно 
лишь определить по каким признакам определять таски (группы пакетов). 
Например, основываясь на rpm, это может быть Provides: task?..
Но не стоит забывать, что во время вызова tasksel база данных рпм может 
быть заблокирована.
Какие будут мысли-предложения?

Полное обсуждение доступно здесь:
http://lists.gnu.org/archive/html/synaptic-devel/2004-07/msg00031.html

-------- Original Message --------
Subject: 	[Synaptic-devel] experimental task support added
Date: 	16 Jul 2004 02:17:08 +0200
From: 	Michael Vogt <mvogt на acm.org>
To: 	synaptic-devel на nongnu.org



Dear Friends,


as discussed some weeks ago with Panu I added experimental task
support for synaptic. It works pretty well on debian already, but you
need a bleeding edge tasksel (get it via "svn co
svn://svn.debian.org/tasksel/trunk") to make it work. 

Here is a screenshot of it in action:
http://people.debian.org/~mvo/synaptic/synaptic-with-tasks.png

The GUI needs a bit more love, I hope Sebastian can have a look at it
:) The Tasks are currently under "File/Tasks", this is likley to
change.

The design should make it easier for other distros to add there own
task (or whatever it is called there) support. The current code uses
the following "protocol":

Please note, that we can easily change /usr/bin/tasksel to something
different or make it configurable via synaptic.conf or -o
Synaptic::taskHelperProg or something.

Please also note that the --task-descr function (and the properties
button in the current GUI) does not work yet. 

As always, feedback about this feature is welcome!


bye,
 Michael

Task support for synaptic
-------------------------


Synaptic works on quite a few distributions. To make support for the
various task systems easy synaptic needs a helper application called
"/usr/bin/tasksel". It has to support the following commands:

--list-tasks: returns a list of the format
              "$taskname\t$task-short-description"

--task-packages $task: list the packages included in the given task
                       this option can be used more than once for
                       different tasks

--task-descr $task: print a long description about the given task


Examples:

$ tasksel --list-tasks
database-server SQL database
desktop Desktop environment
dns-server      DNS server
file-server     File server
mail-server     Mail server
print-server    Print server
web-server      Web server

$ tasksel --task-packages dns-server --task-packages print-server
bind9
bind9-doc
dlint
dnsutils
lwresd
cupsys
cupsys-bsd
cupsys-client
cupsys-driver-gimpprint
foomatic-db-engine
foomatic-db-hpijs
foomatic-filters-ppds

bye,
 Michael


_______________________________________________
Synaptic-devel mailing list
Synaptic-devel на nongnu.org
http://lists.nongnu.org/mailman/listinfo/synaptic-devel



-- 
Regards,
Sviataslau Svirydau <Sviataslau_Svirydau at epam.com>
phone:  +375 17 210 1662, ext. 1302
mobile: +375 29 641 4214
-- 
Power, n.:
	The only narcotic regulated by the SEC instead of the FDA.




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