ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Igor Vlasenko <vlasenko@imath.kiev.ua>
To: devel@lists.altlinux.org
Subject: [devel] I: gear repository update using watch file
Date: Thu, 12 Jan 2012 17:14:27 +0200
Message-ID: <20120112151427.GA3832@dad.imath.kiev.ua> (raw)

Господа,

у нас полноценно заработала возможность автоматизиторвнно 
обновлять gear-репозитории по тарболу.
(Спасибо Денису  (mithraen@) за тестирование!).

Для этого достаточно запустить в gear репозитории с watch файлом
$ rpm-uscan --force-action=gear-uupdate
При выходе новой версии rpm-uscan вызовет утилиту gear-uupdate
как 
gear-uupdate I<tarball> I<new version>
которая и произведет обновление gear репозитория.

Замечу, gear-cronbuild при запуске ищет watch файл, и
при обнаружении запускает
rpm-uscan --any-archive --watchfile="найденный watchfile" --force-action=gear-uupdate
т.е. для обновения можно просто запустить gear-cronbuild без 
аргументов.

Кстати, полезная опция  для rpm-uscan,  --any-archive:
в watch файле исходник может быть указан с конкретным расширением,
например, tar.bz2. --any-archive игнорирует расширение и ищет исходники
в любом формате. Полезно, если апстрим выпустит новую версию 
в другом формате, особенно, с учетом нынещней моды по переезду на tar.xz.

gear репозиторий - сложная штука, поэтому gear-uupdate -- 
двухпроходная утилита. 
gear-uupdate-prepare генерирует набор shell скриптов.
можно отдельно запустить 
gear-uupdate-prepare  I<tarball> I<new version>
посмотреть на сгенерированные скрипты, и запустить их 
с помощью gear-uupdate-execute.

-- 

Dr. Igor Vlasenko
--------------------
Topology Department
Institute of Math
Kiev, Ukraine



                 reply	other threads:[~2012-01-12 15:14 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=20120112151427.GA3832@dad.imath.kiev.ua \
    --to=vlasenko@imath.kiev.ua \
    --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