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

Re: [Ovirt-devel] [PATCH] [ovirt-release] autobuild.sh



On Wed, Sep 10, 2008 at 08:44:04AM -0400, Mohammed Morsi wrote:
> ---
>  autobuild.sh |   27 +++++++++++++++++++++++++++
>  1 files changed, 27 insertions(+), 0 deletions(-)
>  create mode 100755 autobuild.sh
> 
> diff --git a/autobuild.sh b/autobuild.sh
> new file mode 100755
> index 0000000..e90c9d0
> --- /dev/null
> +++ b/autobuild.sh
> @@ -0,0 +1,27 @@
> +#!/bin/sh
> +#oVirt release autobuild script
> +#
> +# Copyright (C) 2008 Red Hat, Inc.
> +#
> +# This program is free software; you can redistribute it and/or modify
> +# it under the terms of the GNU General Public License as published by
> +# the Free Software Foundation; version 2 of the License.
> +#
> +# This program is distributed in the hope that it will be useful,
> +# but WITHOUT ANY WARRANTY; without even the implied warranty of
> +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> +# GNU General Public License for more details.
> +#
> +# You should have received a copy of the GNU General Public License
> +# along with this program; if not, write to the Free Software
> +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
> +# MA  02110-1301, USA.  A copy of the GNU General Public License is
> +# also available at http://www.gnu.org/copyleft/gpl.html.
> +
> +set -e
> +set -v
> +
> +echo "Running oVirt Release Autobuild"
> +make publish
> +
> +ln -f rpm-build/*.rpm $AUTOBUILD_PACKAGE_ROOT/rpm

This is wrong. 'make publish' creates a YUM repo which is not what we
want. Autobuild takes care of that. All you should be doing is building
the RPM and putting it into $AUTOBUILD_PACKAGE_ROOT. Furthermore if you
it shoudln't call 'make rpms' either - invoke rpmbuild directly and 
ensure the autobuild user account has a .rpmmacros pointing to the
$AUTOBUILD_PACKAGE_ROOT.

Regards,
Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|


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