mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-02 08:19:57 +03:00
Removed toolchain code to skip packages #4407
This commit is contained in:
parent
4fc46a17ef
commit
3dcd36b10e
@ -28,14 +28,6 @@ class FtpUploader:
|
|||||||
ftp = FTP(self.host, self.user, self.password)
|
ftp = FTP(self.host, self.user, self.password)
|
||||||
ftp.cwd(self.dir)
|
ftp.cwd(self.dir)
|
||||||
|
|
||||||
# check to see if we should stop here
|
|
||||||
if not replace:
|
|
||||||
files = ftp.nlst()
|
|
||||||
if dest in files:
|
|
||||||
print 'Already exists, skipping.'
|
|
||||||
ftp.close()
|
|
||||||
return
|
|
||||||
|
|
||||||
f = open(src, 'rb')
|
f = open(src, 'rb')
|
||||||
ftp.storbinary('STOR ' + dest, f)
|
ftp.storbinary('STOR ' + dest, f)
|
||||||
f.close()
|
f.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user