diff --git a/prevu b/prevu index de3cc6b..9189607 100755 --- a/prevu +++ b/prevu @@ -153,7 +153,12 @@ class BackportCurrentDir(Backport): self.target_distro=target_distro def prepare_sources(self): print "Making a temporary copy of current directory..." - ret=os.system("cp -rp . "+self.working_path+"/source") + ret = os.system("WP='" + self.working_path + r"""' +cp -rp . "${WP}"/source || exit 1 +BN=$(basename "${PWD}") || exit 1 +PKG=${BN%-*} +cp -p ../"${PKG}"_*.orig.tar* "${WP}" || exit 1 +""") if ret != 0: raise ValueError("Could not prepare sources")