Skip to content

Commit

Permalink
import_srpm: do not pull if we do not push
Browse files Browse the repository at this point in the history
Makes the script fully-local by default, providing a way to import on
local branches before we know if we want to published them.

Signed-off-by: Yann Dirson <[email protected]>
  • Loading branch information
ydirson committed Feb 14, 2025
1 parent 5aefccf commit c2d89af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/import_srpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ def main():

subprocess.check_call(['git', 'fetch'])
subprocess.check_call(['git', 'checkout', args.parent_branch])
subprocess.check_call(['git', 'pull'])
if args.push:
subprocess.check_call(['git', 'pull'])

print(" removing everything from SOURCES and SPECS...")

Expand Down

0 comments on commit c2d89af

Please sign in to comment.