[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] Publishing libvirt 'patches' JSON database?

On Wed, Mar 23, 2016 at 04:34:26PM +0100, Kashyap Chamarthy wrote:

So things turn out to be a bit more complicated for libvirt than for
QEMU, because we have one mailing list accepting patches for 10+
different git repositories. Patches has no built-in support for this
model, so you have to create a separate configuration file for each
repo, so that it stores the patches json file separately for each
and then pass that config file when fetching

  git clone git://github.com/stefanha/patches.git

  REPOS="libvirt libvirt-designer libvirt-glib libvirt-java
         libvirt-perl libvirt-php libvirt-python libvirt-sandbox
         libvirt-snmp libvirt-tck"
  for repo in $REPOS
    cat > $HOME/.patchesrc-$repo <<EOF


    cat > $HOME/bin/patchesrc-$repo <<EOF

exec $HOME/patches/patches --config $HOME/.patchesrc-$repo \$@

    chmod +x $HOME/bin/patchesrc-$repo

Now, assuming $HOME/bin is in your $PATH, you can run

 $ patches-libvirt fetch
 $ patches-libvirt list

Or to look at other repos, eg sandbox

 $ patches-libvirt-sandbox fetch
 $ patches-libvirt-sandbox list
patchesrc-libvirt-sandbox list
Message-id: 20160323074705 GA4974 bogon m sigxcpu org
From: Guido G√ľnther <agx sigxcpu org>
Date: 2016-03-23
   [1/1] Ignore generated file

 $ patches-libvirt-sandbox apply id:20160323074705 GA4974 bogon m sigxcpu org

nb assumes your $CWD is the libvirt-sandbox git checkout

|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]