Issue #535
closedpulp-puppet-module-builder --clean doesn't work
Description
Description of problem:
-c, --clean delete cloned repositories before and after building.
Based on this explanation, it should remove the cloned repos, but it looks like it doesn't do anything:
pulp-puppet-module-builder --working-dir=/opt/puppet --output-dir=/opt/puppet/modules --clean --url=https://our.git.site/pp_roles_and_profiles/profiles_management.git -t 0.2.1
rm -rf /opt/puppet/profiles_management.git
cd /opt/puppet
git clone --recursive https://our.git.site/pp_roles_and_profiles/profiles_management.git
cd profiles_management
git status
git remote show -n origin
git fetch
git fetch --tags
git checkout 0.2.1
find . -name init.pp
puppet module build .
mkdir -p /opt/puppet/modules
cp ./pkg/management-profiles-0.2.1.tar.gz /opt/puppet/modules
cd /opt/puppet/modules
cd /opt/puppet/profiles_management
cd /home/git
rm -rf /opt/puppet/profiles_management.git
pulp-puppet-module-builder --working-dir=/opt/puppet --output-dir=/opt/puppet/modules --clean --url=https://our.git.site/pp_roles_and_profiles/profiles_management.git -t 0.2.2
rm -rf /opt/puppet/profiles_management.git
cd /opt/puppet
git clone --recursive https://our.git.site/pp_roles_and_profiles/profiles_management.git
fatal: destination path 'profiles_management' already exists and is not an empty directory.
Version-Release number of selected component (if applicable):
2.4.0
How reproducible:
Always
Steps to Reproduce:
1. create a puppet module based on tag/branch
2. create a puppet module with same name, but different tag/branch as above
3.
Actual results:
second invocation fails
Expected results:
Additional info:
+ This bug was cloned from Bugzilla Bug #1145131 +