[wpkg-users] [Bug 22] make wpkg.js operating system aware

bugzilla-daemon at bugzilla.wpkg.org bugzilla-daemon at bugzilla.wpkg.org
Mon Nov 19 19:38:45 CET 2007


http://bugzilla.wpkg.org/show_bug.cgi?id=22


Rainer Meier <skybeam at users.sourceforge.net> changed:

           What    |Removed                     |Added

                 CC|                            |skybeam at users.sourceforge.ne
                   |                            |t
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX




--- Comment #5 from Rainer Meier <skybeam at users.sourceforge.net>  2007-11-19 19:38:39 ---
I think having two hosts with the same hostname on the same network isn't the
best idea. If you have different hostnames you can also assign different
profiles.

Additionally there is a /host:<name> and /profile:<name> switch which probably
already allows you to do the same (selecting profile based on operating
system).

Probably you can launch WPKG by a wrapper script and then add the following
command-line:
wpkg.js /host:[hostname]-[OS]
I am quite sure there are tools out there which allow you to even retrieve a
usable name on Windows 9x. Using the proposal above allows you to match the
operating system using regular expression within hosts.xml.

Alternatively you might directly specify a profile:
wpkg.js /profile:profile%OS%
This evaluates to "profile" on Windows 9x and "profileWindows_NT" on NT and
newer.

I think this is much more flexible than just allowing to match the OS
environment variable within the hosts definition. In fact my first proposal
allows the same as I am usually trying to do: Allow OS identification by
hostname already.


-- 
Configure bugmail: http://bugzilla.wpkg.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


wpkg-users mailing list
wpkg-users at lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users



More information about the wpkg-users mailing list