From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1ShQD7-0001xm-PP for garchives@archives.gentoo.org; Wed, 20 Jun 2012 19:05:02 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D357FE044C; Wed, 20 Jun 2012 19:04:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 917AFE044C for ; Wed, 20 Jun 2012 19:03:59 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BAA6C1B404A for ; Wed, 20 Jun 2012 19:03:58 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 231A2E5448 for ; Wed, 20 Jun 2012 19:03:56 +0000 (UTC) From: "André Erdmann" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "André Erdmann" Message-ID: <1340218851.b19701b19f19d62c28583310ffc5b56c6dd20b0f.dywi@gentoo> Subject: [gentoo-commits] proj/R_overlay:master commit in: / X-VCS-Repository: proj/R_overlay X-VCS-Files: run_ebuildcreation.py run_metadata.py test_ebuildcreation.sh X-VCS-Directories: / X-VCS-Committer: dywi X-VCS-Committer-Name: André Erdmann X-VCS-Revision: b19701b19f19d62c28583310ffc5b56c6dd20b0f X-VCS-Branch: master Date: Wed, 20 Jun 2012 19:03:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 5fccd475-8880-462b-bc07-893a965e131c X-Archives-Hash: d73fc97ebc37a78b6844aacf92f3ae49 commit: b19701b19f19d62c28583310ffc5b56c6dd20b0f Author: Andr=C3=A9 Erdmann mailerd de> AuthorDate: Wed Jun 20 19:00:51 2012 +0000 Commit: Andr=C3=A9 Erdmann mailerd de> CommitDate: Wed Jun 20 19:00:51 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/R_overlay.git= ;a=3Dcommit;h=3Db19701b1 removed test scripts * removed test scripts that do no longer work due to changes in roverlay/ deleted: run_ebuildcreation.py deleted: run_metadata.py deleted: test_ebuildcreation.sh --- run_ebuildcreation.py | 64 ------------------------------------------= ------ run_metadata.py | 32 ------------------------ test_ebuildcreation.sh | 56 ------------------------------------------ 3 files changed, 0 insertions(+), 152 deletions(-) diff --git a/run_ebuildcreation.py b/run_ebuildcreation.py deleted file mode 100755 index dae02c7..0000000 --- a/run_ebuildcreation.py +++ /dev/null @@ -1,64 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- -# Copyright 2006-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -import sys -import logging - -def me ( msg ): - sys.stderr.write ("<=3D=3D=3D run_ebuildcreation " + msg + " =3D=3D=3D>= \n" ) - -me ( "start" ) - -try: - from roverlay import config - from roverlay.depres import simpledeprule, listeners - from roverlay.portage.ebuildjob import EbuildJob - from roverlay.portage.ebuildcreator import EbuildCreator - - ec =3D EbuildCreator () - - # todo: EbuildCreator should offer a method to load simple rules - testrules =3D simpledeprule.SimpleDependencyRulePool ( - 'test pool', - filepath=3D'simple-deprules.conf', - priority=3D25 - ) - ec.depresolve_main.add_rulepool ( testrules ) - ec.depresolve_main.set_logmask ( -1 ) - - # add listeners - ec.depresolve_main.add_listener ( listeners.ResolvedFileListener ( = config.get ( 'LOG.FILE.resolved' ) ) ) - ec.depresolve_main.add_listener ( listeners.UnresolvableFileListener ( = config.get ( 'LOG.FILE.unresolvable' ) ) ) - - for tarball in sys.argv[1:]: - sys.stderr.write ( "Adding tarball " + tarball + " to the EbuildCreato= r.\n" ) - if ec.add_package ( tarball ) is None: - raise Exception ( "ec.add() returns None, fix that." ) - - ec.start() - - for e in ec.collect_ebuilds (): - sys.stderr.write ( '\n** ebuild, filename=3D' + e.suggest_name ( '__un= def__' ) + '.ebuild\n' ) - sys.stderr.write ( '[### this is an ebuild: ###]\n' ) - e.show ( sys.stderr ) - sys.stderr.write ( '[### this was an ebuild: ###]\n' ) - - for ebuild_dir, mdata in ec.metadata.items(): - sys.stderr.write ( '\n** metadata, in subdir %s\n' % ebuild_dir ) - sys.stderr.write ( '[### this is a metadata file: ###]\n' ) - mdata.write ( sys.stderr ) - sys.stderr.write ( '[### this was a metadata file: ###]\n' ) - - - ec.close() - - me ( "end" ) - -except Exception as err: - print ( str ( err ) ) - me ( "failed" ) - raise - - diff --git a/run_metadata.py b/run_metadata.py deleted file mode 100755 index a664d48..0000000 --- a/run_metadata.py +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env python3 - -import logging -import sys - -from roverlay.portage.metadata.creation import MetadataJob -from roverlay.portage.metadata.nodes import * - -mj =3D MetadataJob ( None, logging.getLogger ( 'nop' ) ) -m =3D mj._metadata - -dshort =3D DescriptionNode ( 'short description', False ) -dlong =3D DescriptionNode ( 'a longer description\nthat tells you every= detail about this package', True ) -duse =3D UseFlagListNode () - -m.add ( dshort ) -m.add ( dlong ) -m.add ( duse ) - -try: - duse.add ( NopNode() ) - fail =3D True -except Exception as e: - print ( '!!! %s' % e ) - fail =3D False - -if fail: raise Exception ( "bad node accepted!" ) - -m.get ( 'use' ).add ( UseFlagNode ( 'byte-compile', 'enable byte compili= ng' ) ) -duse.add ( UseFlagNode ( 'R_Suggests', 'install suggested packages' ) ) - -mj.write ( sys.stdout ) diff --git a/test_ebuildcreation.sh b/test_ebuildcreation.sh deleted file mode 100755 index 71b352d..0000000 --- a/test_ebuildcreation.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/bash -set -u -set -e -readonly ARGV=3D"$*" -readonly _SELF=3D"${0##*/}" -readonly _SELF_NAME=3D"${_SELF%.*sh}" -readonly TEST_SECTION=3D"${_SELF_NAME#test_}" -# -readonly py=3D${PYTHON:-python3} -# -_ROOT=3D`pwd` -if [[ ! -e "${_ROOT}/examples" ]]; then - _ROOT=3D"${_ROOT%/*}" -fi -readonly EXAMPLES=3D"${_ROOT}/examples" -readonly PKGDIR=3D"${EXAMPLES}/packages" - - -if [[ "${TEST_SECTION}" =3D=3D "ebuildcreation" ]]; then - if [[ "${1:-}" =3D=3D "-q" ]]; then - q=3D1 - shift ||: - else q=3D0; fi - - declare -i multiply=3D${1:-1} - [[ $multiply -gt 0 ]] || multiply=3D1 - pkgline=3D"" - pkgcount=3D0 - for x in "${PKGDIR}"/*.tar.gz "${PKGDIR}"/*.tgz; do - if [[ -r "$x" ]]; then - pkgline+=3D" ${x}" - ((pkgcount++)) ||: - fi - done - pkgline=3D"${pkgline# }" - - argline=3D"" - for i in `seq 1 $multiply`; do - argline+=3D" ${pkgline}" - done - - num=3D$(( $multiply * $pkgcount )) - echo "Please note: python may return 'Argument list too long'. Double c= heck your result if it's too fantastic to believe. (28500 pkgs could work= , but 30000 don't)." 1>&2 - echo "Creating $num packages" 1>&2 - time { - if [[ $q -eq 1 ]]; then - &>/dev/null $py "${_ROOT}/run_ebuildcreation.py" $argline || echo fai= l 1>&2 - else - $py "${_ROOT}/run_ebuildcreation.py" $argline - fi; - } - echo "Done creating $num packages" 1>&2 -else - echo "test section not defined: ${TEST_SECTION}" - exit ${__UNDEF__:-102} -fi