Hello community, here is the log from the commit of package ruby-common for openSUSE:Factory checked in at 2013-01-22 17:52:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ruby-common (Old) and /work/SRC/openSUSE:Factory/.ruby-common.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ruby-common", Maintainer is "[email protected]" Changes: -------- --- /work/SRC/openSUSE:Factory/ruby-common/ruby-common.changes 2013-01-10 22:34:51.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.ruby-common.new/ruby-common.changes 2013-01-22 17:52:09.000000000 +0100 @@ -1,0 +2,8 @@ +Wed Jan 9 18:05:38 GMT 2013 - [email protected] + +- Fix it to work even if all-good has just been created locally + via mkpac and doesn't exist server-side yet. +- Improve support for running within a branch of the original + project. This allows submitreqs which change all-good.spec. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ generate_buildrequires.sh ++++++ --- /var/tmp/diff_new_pack.BEyfor/_old 2013-01-22 17:52:11.000000000 +0100 +++ /var/tmp/diff_new_pack.BEyfor/_new 2013-01-22 17:52:11.000000000 +0100 @@ -47,14 +47,29 @@ main () { parse_opts "$@" - project=$( osc info | sed -ne '/^Project name: / { s///; p }' ) if [ -z "$project" ]; then - echo "Couldn't establish build service project name." >&2 - echo "Are you inside a package working directory?" >&2 - exit 1 + project=$( osc info | sed -ne '/^Project name: / { s///; p }' ) + if [ -z "$project" ]; then + echo "Couldn't establish build service project name." >&2 + echo "Are you inside a package working directory?" >&2 + exit 1 + fi fi echo "Project: $project" + case "$project" in + home:*:branches:*) + cat <<EOF >&2 + +WARNING: you are running this in a branch. + +You probably need to specify the parent project via -P, +otherwise you may not get the dependencies you want. + +EOF + ;; + esac + specfile=$( ls -1 *.spec ) if ! [ -f "$specfile" ]; then echo "Couldn't find spec file." >&2 @@ -96,6 +111,7 @@ -l, --list List matching rpms for the given repository / arch. If no repository specified, show counts of matching rpms per repository / arch. + -P, --project=PROJ Retrieve rpm lists from PROJ, not the current project. -p, --pattern=PAT Set the pattern to match rpms by [$DEFAULT_PATTERN] EOF exit "$exit_code" @@ -103,6 +119,7 @@ parse_opts () { list= + project= pattern="$DEFAULT_PATTERN" while [ $# != 0 ]; do @@ -118,6 +135,10 @@ pattern="$2" shift 2 ;; + -P|--project) + project="$2" + shift 2 + ;; -*) usage "Unrecognised option: $1" ;; @@ -159,7 +180,7 @@ } find_all_matches () { - osc repos | while read repo arch; do + osc repos "$project" | while read repo arch; do echo "Obtaining BuildRequires from $repo $arch ..." >&2 get_buildrequires_lines "$repo" "$arch" done | sort -u -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
