diff --git a/core/update_obs_repos.py b/core/update_obs_repos.py index 73d957a53ad0500d756f5e4a16cd6e6f57b1eb86..bd1cfd4ef9a6597d66d7f468a24a13bb39af89c8 100755 --- a/core/update_obs_repos.py +++ b/core/update_obs_repos.py @@ -237,8 +237,10 @@ class RPMManager(object): with open(self.obs_pkg_rpms_file, "w", encoding="utf-8") as f: yaml.dump(self.old_pkg_rpms, f) for i in range(5): - cmd = "cd %s && git pull && git add %s && git commit -m 'update rpms' && git push && cd - && rm -rf %s" \ - % (self.obs_pkg_rpms_files_dir, self.obs_pkg_rpms_file, self.obs_pkg_rpms_files_dir) + cmd = "cd %s && git pull && git add %s && git commit -m 'update rpms in file %s' \ + && git push && cd - && rm -rf %s" \ + % (self.obs_pkg_rpms_files_dir, self.obs_pkg_rpms_file, \ + self.obs_pkg_rpms_file, self.obs_pkg_rpms_files_dir) if os.system(cmd) == 0: break