From e327bf40fd9cb9679df9047760c20bd454561613 Mon Sep 17 00:00:00 2001 From: Ales Raszka Date: Feb 23 2016 08:31:38 +0000 Subject: Fix lookaside upload when --path is specified Resolves: bz1310142 Signed-off-by: Ales Raszka --- diff --git a/src/pyrpkg/__init__.py b/src/pyrpkg/__init__.py index 98f9fc5..5f81902 100644 --- a/src/pyrpkg/__init__.py +++ b/src/pyrpkg/__init__.py @@ -2225,9 +2225,6 @@ class Commands(object): Can optionally replace the existing tracked sources """ - oldpath = os.getcwd() - os.chdir(self.path) - sourcesf = SourcesFile(self.sources_filename, self.source_entry_type, replace=replace) gitignore = GitIgnore(os.path.join(self.path, '.gitignore')) @@ -2262,9 +2259,6 @@ class Commands(object): self.repo.index.add(['sources', '.gitignore']) - # Change back to original working dir: - os.chdir(oldpath) - def prep(self, arch=None, builddir=None): """Run rpm -bp on a module