buffalo/MunkiFace — Issue #12: server-app: pkgs model doesn't find pkgs in subdirectories
Author: gregneagle
Created: 2012-02-25 21:12:50+00:00
State: open

With an instance of the server app running at http://localhost/~gneagle/server-app/, an attempt to get a list of all packages:

http://localhost/~gneagle/server-app/?controller=pkgs

Does not descend into subdirectories:

["/Users/Shared/munki_demo/munki_repo/pkgs/Adium_1.3.10.dmg","/Users/Shared/munki_demo/munki_repo/pkgs/Thunderbird 3.1.4.dmg","/Users/Shared/munki_demo/munki_repo/pkgs/apps"]

A recursive directory listing:
% ls -R /Users/Shared/munki_demo/munki_repo/pkgs
Adium_1.3.10.dmg Thunderbird 3.1.4.dmg apps

/Users/Shared/munki_demo/munki_repo/pkgs/apps:
Thunderbird 6.0.dmg googlechrome.dmg googlechrome14.dmg
Thunderbird 7.0.1.dmg googlechrome13.dmg mozilla

/Users/Shared/munki_demo/munki_repo/pkgs/apps/mozilla:
Firefox 3.6.12.dmg Firefox 4.0.dmg Firefox 6.0.2.dmg Firefox 7.0.dmg Firefox 9.0.1.dmg