diff --git a/bloom/generators/rpm/generator.py b/bloom/generators/rpm/generator.py index 871f7b13..ddb676d5 100644 --- a/bloom/generators/rpm/generator.py +++ b/bloom/generators/rpm/generator.py @@ -781,8 +781,10 @@ def generate_rpm(self, package, rpm_distro, rpm_dir='rpm'): template_files = process_template_files('.', subs) # Remove any residual template files execute_command('git rm -rf ' + ' '.join("'{}'".format(t) for t in template_files)) - # Add changes to the rpm folder - execute_command('git add ' + rpm_dir) + # Add marker file to tell mock to archive the sources + open('.write_tar', 'a').close() + # Add marker file changes to the rpm folder + execute_command('git add .write_tar ' + rpm_dir) # Commit changes execute_command('git commit -m "Generated RPM files for ' + rpm_distro + '"')