Changeset 3778176 for debian/lib


Ignore:
Timestamp:
Jun 24, 2010, 1:48:08 AM (14 years ago)
Author:
Jessica B. Hamrick <jhamrick@…>
Branches:
master, debian, mac, no-cups, nodebathena, web
Children:
abc5705
Parents:
b30ec0c
git-author:
Jessica Hamrick <jhamrick@…> (05/12/10 23:17:54)
git-committer:
Jessica B. Hamrick <jhamrick@…> (06/24/10 01:48:08)
Message:

CUPS on Jaunty doesn't send hostname info, so check to see if it is null first

File:
1 edited

Legend:

Unmodified
Added
Removed
  • debian/lib/gutenbach

    re20354c r3778176  
    9696open(ZEPHYR, "|-", @zwrite_command) or die "Couldn't launch zwrite: $!";
    9797
    98 print(ZEPHYR $arguments{"user"},"\@",$arguments{"options"}{"job-originating-host-name"}," is playing:\n");
    99 my $status = "User: ".$arguments{"user"}."\@".$arguments{"options"}{"job-originating-host-name"};
     98my $status;
     99if (exists($arguments{"options"}{"job-originating-host-name"})) {
     100    print(ZEPHYR $arguments{"user"},"\@",$arguments{"options"}{"job-originating-host-name"}," is playing:\n");
     101    $status = "User: ".$arguments{"user"}."\@".$arguments{"options"}{"job-originating-host-name"};
     102} else {
     103    print(ZEPHYR $arguments{"user"}," is playing:\n");
     104    $status = "User: ".$arguments{"user"};
     105}
    100106
    101107# SIGHUP handler, in case we were aborted
Note: See TracChangeset for help on using the changeset viewer.