Project

Profile

Help

Issue #535

closed

pulp-puppet-module-builder --clean doesn't work

Added by cristi.falcas@gmail.com about 9 years ago. Updated about 3 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
2.4.0
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

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 +

Actions #1

Updated by cristi.falcas@gmail.com about 9 years ago

Actually, I see now that the repo is cloned in "name", but it tries to remove "name.git"

+ This comment was cloned from Bugzilla #1145131 comment 1 +

Actions #2

Updated by bmbouter about 9 years ago

  • Severity changed from Low to 1. Low
Actions #3

Updated by bmbouter about 5 years ago

  • Status changed from NEW to CLOSED - WONTFIX

Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.

Actions #4

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF