daca2.py: PEP8 fixes
This commit is contained in:
parent
d30ebe268a
commit
568a49c409
|
@ -1,11 +1,10 @@
|
||||||
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# 1. Create a folder daca2 in your HOME folder
|
# 1. Create a folder daca2 in your HOME folder
|
||||||
# 2. Put cppcheck-O2 in daca2. It should be built with all optimisations.
|
# 2. Put cppcheck-O2 in daca2. It should be built with all optimisations.
|
||||||
# 3. Edit this line: FOLDER = 'a'
|
# 3. Edit this line: FOLDER = 'a'
|
||||||
# 4. Optional: Put a file called "suppressions.txt" in the daca2 folder.
|
# 4. Optional: Put a file called "suppressions.txt" in the daca2 folder.
|
||||||
# 5. Run the daca2 script: python daca2.py
|
# 5. Run the daca2 script: python daca2.py
|
||||||
#
|
|
||||||
|
|
||||||
import ftplib
|
import ftplib
|
||||||
import subprocess
|
import subprocess
|
||||||
|
@ -19,6 +18,7 @@ FTPSERVER = 'ftp.sunet.se'
|
||||||
FTPPATH = '/pub/Linux/distributions/Debian/debian/pool/main/'
|
FTPPATH = '/pub/Linux/distributions/Debian/debian/pool/main/'
|
||||||
FOLDER = 'b'
|
FOLDER = 'b'
|
||||||
|
|
||||||
|
|
||||||
def removeAllExceptResults():
|
def removeAllExceptResults():
|
||||||
filenames = glob.glob('[A-Za-z]*')
|
filenames = glob.glob('[A-Za-z]*')
|
||||||
for filename in filenames:
|
for filename in filenames:
|
||||||
|
@ -64,7 +64,7 @@ for package in packages:
|
||||||
|
|
||||||
if filename:
|
if filename:
|
||||||
fullpath = 'ftp://ftp.sunet.se' + path + '/' + filename
|
fullpath = 'ftp://ftp.sunet.se' + path + '/' + filename
|
||||||
subprocess.call(['wget',fullpath])
|
subprocess.call(['wget', fullpath])
|
||||||
subprocess.call(['tar', 'xzvf', filename])
|
subprocess.call(['tar', 'xzvf', filename])
|
||||||
subprocess.call(['rm', filename])
|
subprocess.call(['rm', filename])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue