First stage porting torrent transport to new transorts
This commit is contained in:
parent
21aa22cff3
commit
29b859aace
14
resources/transport_torrent/meta.yml
Normal file
14
resources/transport_torrent/meta.yml
Normal file
@ -0,0 +1,14 @@
|
||||
id: transport_torrent
|
||||
input:
|
||||
name:
|
||||
schema: str!
|
||||
value: torrent
|
||||
location_id:
|
||||
schema: str
|
||||
value:
|
||||
reverse: True
|
||||
is_own: False
|
||||
transports_id:
|
||||
schema: str
|
||||
value:
|
||||
is_emit: False
|
1
resources/transport_torrent/scripts/solar_torrent.py
Symbolic link
1
resources/transport_torrent/scripts/solar_torrent.py
Symbolic link
@ -0,0 +1 @@
|
||||
../../../solar/solar/core/transports/helpers/solar_torrent.py
|
@ -117,7 +117,7 @@ class TorrentSyncTransport(SyncTransport):
|
||||
to_get = ["%s|%s" % (os.path.abspath(os.path.join(x[2], '..')), x[1]) for x in torrents]
|
||||
get_args = ';'.join(to_get)
|
||||
cmd = ['/usr/bin/python',
|
||||
'/vagrant/solar/solar/core/transports/helpers/solar_torrent.py',
|
||||
'/var/tmp/solar_torrent.py',
|
||||
'g',
|
||||
'"%s"' % get_args]
|
||||
self.other.run(resource, *cmd, use_sudo=use_sudo)
|
||||
|
Loading…
x
Reference in New Issue
Block a user