mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
dependency: only use rel_path for local deps
Fixes #1048 Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user