mirror of
https://github.com/rpm-software-management/tito.git
synced 2025-02-23 20:22:46 +00:00
Do not use absolute path to generate-patches.pl script
* When tito is installed using pip, then generate-patches is installed into the ~/.local/bin directory and the absolute path cannot work
This commit is contained in:
parent
5575554c95
commit
d9ed1db7da
1 changed files with 2 additions and 2 deletions
|
@ -26,9 +26,9 @@ class DistributionBuilder(UpstreamBuilder):
|
|||
ch_dir = os.path.join(self.git_root,
|
||||
self.relative_project_dir)
|
||||
os.chdir(ch_dir)
|
||||
debug("Running /usr/bin/generate-patches.pl -d %s %s %s-1 %s %s"
|
||||
debug("Running generate-patches.pl -d %s %s %s-1 %s %s"
|
||||
% (self.rpmbuild_gitcopy, self.project_name, self.upstream_version, self.build_version, self.git_commit_id))
|
||||
output = run_command("/usr/bin/generate-patches.pl -d %s %s %s-1 %s %s"
|
||||
output = run_command("generate-patches.pl -d %s %s %s-1 %s %s"
|
||||
% (self.rpmbuild_gitcopy, self.project_name, self.upstream_version, self.build_version, self.git_commit_id))
|
||||
self.patch_files = output.split("\n")
|
||||
for p_file in self.patch_files:
|
||||
|
|
Loading…
Add table
Reference in a new issue