dependency: only use rel_path for local deps

Fixes #1048

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-08-24 14:36:38 +03:00
parent d555bae6e1
commit 18f0ca0d92
2 changed files with 7 additions and 1 deletions
+5 -1
View File
@@ -59,7 +59,11 @@ class DependencyBase(object):
def status(self):
if self.changed():
# FIXME better msgs
return {self.rel_path: 'changed'}
if self.path_info['scheme'] == 'local':
p = self.rel_path
else:
p = self.path
return {p: 'changed'}
return {}
def save(self):
+2
View File
@@ -380,6 +380,8 @@ class TestReproExternalBase(TestDvc):
sleep()
self.dvc.status()
stages = self.dvc.reproduce(import_stage.path)
self.assertEqual(len(stages), 1)
self.assertTrue(os.path.exists('import'))