Skip to content

Commit

Permalink
Fixed quesofiesta
Browse files Browse the repository at this point in the history
  • Loading branch information
SisterMystery committed Dec 4, 2013
1 parent 01a4717 commit 322a359
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
2 changes: 1 addition & 1 deletion cheesePull.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ then
do


scp -r [email protected]:$line /data/PackRat
scp -r [email protected]:$line $line
if [ "$line" ]
then
if [ -f $line ]
Expand Down
30 changes: 21 additions & 9 deletions diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,28 +61,40 @@ def main():
if thing in toPull:
toDelete.remove(thing)

for c in toDelete:
if os.path.exists(c):
os.remove(c)
print "===>Deleted ", c ,"\n"
# for c in toDelete:
# if os.path.exists(c):
# os.remove(c)
# print "===>Deleted ", c ,"\n"

NewFi = open(PRconfig.path+"/neededFiles.txt", "w")


for item in toPull:
ln.append(item.split("/"))
for item in ln:
while len(item) > 4:
del item[4]
for item in ln:
# for item in ln:
# while len(item) > 4:
# del item[4]

for item in ln:
if len(item) > 3:
for index in range(3,len(item)):
os.system("mkdir "+item[index])

RealPull.append('/'.join(item))



for item in RealPull:
NewFi.write(item)
NewFi.write("\n")

NewFi.write(PRconfig.path+"/manifest.txt\n")


for c in toDelete:
if os.path.exists(c):
os.remove(c)
print "===>Deleted ", c ,"\n"

piman.close()
servman.close()
NewFi.close()
Expand Down

0 comments on commit 322a359

Please sign in to comment.