Correction of a bug with CSS handling
TODO : - Finish tesing - Refactor everything to improve it
This commit is contained in:
parent
caa6bb726e
commit
8004eab2ba
1
TODO
1
TODO
@ -1,3 +1,2 @@
|
|||||||
What happen when a file is moved with git ?
|
What happen when a file is moved with git ?
|
||||||
Flake8 the whole thing ! :) + Clean the code
|
Flake8 the whole thing ! :) + Clean the code
|
||||||
tags / smileys / ...
|
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
|
||||||
#TODO : gitignore
|
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import getopt
|
import getopt
|
||||||
import shutil
|
import shutil
|
||||||
@ -126,7 +124,6 @@ added_files = []
|
|||||||
if not force_regen:
|
if not force_regen:
|
||||||
#Find the changes to be committed
|
#Find the changes to be committed
|
||||||
try:
|
try:
|
||||||
#TODO : Check this command
|
|
||||||
changes = subprocess.check_output(["git", "diff", "--cached", "--name-status"], universal_newlines=True)
|
changes = subprocess.check_output(["git", "diff", "--cached", "--name-status"], universal_newlines=True)
|
||||||
except:
|
except:
|
||||||
sys.exit("[ERROR] An error occured when running git diff.")
|
sys.exit("[ERROR] An error occured when running git diff.")
|
||||||
@ -229,7 +226,6 @@ print("[INFO] Modified files : "+", ".join(modified_files))
|
|||||||
print("[INFO] Deleted filed : "+", ".join(deleted_files))
|
print("[INFO] Deleted filed : "+", ".join(deleted_files))
|
||||||
|
|
||||||
print("[INFO] Updating tags for added and modified files")
|
print("[INFO] Updating tags for added and modified files")
|
||||||
#TODO : refactor since there
|
|
||||||
for filename in added_files:
|
for filename in added_files:
|
||||||
try:
|
try:
|
||||||
with open(filename, 'r') as fh:
|
with open(filename, 'r') as fh:
|
||||||
@ -420,7 +416,7 @@ except IOError:
|
|||||||
sys.exit("[ERROR] Unable to copy the footer.html file.")
|
sys.exit("[ERROR] Unable to copy the footer.html file.")
|
||||||
|
|
||||||
#Copy CSS files
|
#Copy CSS files
|
||||||
if not os.path.isfile("raw/css") or list_directory("raw/css") == []:
|
if not os.path.isdir("raw/css") or list_directory("raw/css") == []:
|
||||||
print("[INFO] (CSS) No CSS files in raw/css folder")
|
print("[INFO] (CSS) No CSS files in raw/css folder")
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user