Skip to content

.run_cpack doesn't iterate properly to sub projects. #1212

@bulldogc

Description

@bulldogc

Version

0.18.1

OS Version

Other (please specify in the bug description)

Describe the bug

At the end of .run_cpack the code is doing a cd $build_dir/$val, this changes the dir for the duration of the script and causes a failure to run cpack on the full list of packages.
Change this cd to a pushd and add a popd to the bottem of that if block to correct this.

I am seeing this with 0.18.1 on ubuntu 18 currently but the file seems to be the same in the latest version so this is likely still a problem.

To Reproduce

Execute
catkin build -DCMAKE_BUILD_TYPE=Release -DTESSERACT_PACKAGE=ON;
./src/tesseract/.run-cpack

from the catkin workspace folder.

Expected behavior

cpack gets run on all the packages in StringArray but instead only runs on the first and then cant find any other folders.

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions