Skip to content

Commit

Permalink
Merge pull request #4 from thz/master
Browse files Browse the repository at this point in the history
bugfix: result-serving's directory index
  • Loading branch information
cgwd committed Nov 9, 2015
2 parents e60fa90 + 3120b1f commit 382c7b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions libredo/data/result_httpd.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ def list_directory(self, path):
except os.error:
self.send_error(404, "No permission to list directory")
return None
while path[-1] == '/':
path = path[:-1]
if path == self.server.chroot:
list.append("packages/")
list.append("packages.tar")
list.append("packages/")
list.append("packages.tar")

list.sort(lambda a, b: cmp(a.lower(), b.lower()))
f = StringIO()
Expand Down
3 changes: 2 additions & 1 deletion libredo/data/serve.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ cd /REDO/build/tmp/deploy/images

find /REDO/build/tmp/deploy/images -type l -name "core-image*.iso" -exec ln -s {} "$RESULTDIR/" ';'
find /REDO/build/tmp/deploy/images -type l -name "core-image*.ova" -exec ln -s {} "$RESULTDIR/" ';'
find /REDO/build/tmp/deploy/images -type l -name "core-image*-sdimg" -exec ln -s {} "$RESULTDIR/" ';'
)

(
Expand All @@ -72,4 +73,4 @@ echo
find $RESULTDIR
echo

python /REDO/results/result_httpd.py 80 /REDO/results/$BUILDID /REDO/build/tmp/deploy/ipk
python /REDO/results/result_httpd.py 80 "$RESULTDIR" /REDO/build/tmp/deploy/ipk

0 comments on commit 382c7b1

Please sign in to comment.