[Rock-dev] autoproj selects wrong branch

Sylvain Joyeux sylvain.joyeux at dfki.de
Wed Aug 14 10:19:27 CEST 2013


On 08/13/2013 02:28 PM, Raul Dominguez wrote:
> we are bootstraping our software installation on the branch next but two 
> packages (data_processing/type_to_vector and our bundle) are taken from 
> the master branch of the repository instead of from next.
>
> We haven't set any override to do that, and these two packages have a 
> "next" branch.
>
> Does anyone knows why this could be happening? Should it be stated 
> somewhere (apart of in the bootstrap.sh) that we want the packages to be 
> from "next"?
Packages need to be declared as part of the 'next' flavor with

in_flavor 'master', 'next' do
  # Put package declaration here
end

*and* the source.yml file must say

  branch: $ROCK_FLAVOR

for these packages in order to having autoproj pick the "flavored" branch.

type_to_vector is in principle in next already, so that should be
covered. Don't forget that you have to run aup --all to switch all
branches properly after you change the flavor (not needed if you
bootstrap, of course).

A good way to debug this is to run

  autoproj show <package name>

For instance,

$ autoproj show data_processing/type_to_vector
source package data_processing/type_to_vector
  imported from
    type: git
    url: git://gitorious.org/rock-data-processing/type_to_vector.git
    branch: master
    push_to: git at gitorious.org:/rock-data-processing/type_to_vector.git
    retry_count: 10
    first match: in rock
      branch: $ROCK_FLAVOR
      gitorious: rock-data-processing/$PACKAGE_BASENAME
  is not directly selected by the manifest
  reverse dependencies: bundles/virgo,
data_processing/orogen/type_to_vector, virgo/orogen/averager,
virgo/orogen/filter, virgo/orogen/predictor_statespace, virgo/orogen/virgo
  selected by way of
   
virgo>virgo/orogen/virgo>virgo/orogen/predictor_statespace>data_processing/orogen/type_to_vector>data_processing/type_to_vector
  directly depends on: typelib, utilmm

(So, you can see that the first and only match is using $ROCK_FLAVOR
*and* the final branch is master since I am using master)

-- 
Sylvain Joyeux (Dr.Ing.)
Senior Researcher

Space & Security Robotics
Underwater Robotics

!!! Achtung, neue Telefonnummer!!!

Standort Bremen:
DFKI GmbH
Robotics Innovation Center
Robert-Hooke-Straße 5
28359 Bremen, Germany

Phone: +49 (0)421 178-454136
Fax:   +49 (0)421 218-454150
E-Mail: robotik at dfki.de

Weitere Informationen: http://www.dfki.de/robotik
-----------------------------------------------------------------------
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
(Vorsitzender) Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern, HRB 2313
Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
USt-Id.Nr.:    DE 148646973
Steuernummer:  19/673/0060/3
----------------------------------------------------------------------- 



More information about the Rock-dev mailing list