~ubuntu-branches/ubuntu/dapper/libmasonx-request-withapachesession-perl/dapper

« back to all changes in this revision

Viewing changes to debian/patches/01-subrequest-return.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Krzysztof Krzyzaniak (eloy)
  • Date: 2005-11-18 16:25:59 UTC
  • Revision ID: james.westby@ubuntu.com-20051118162559-14ndkr722nhdnoh6
Tags: 0.30-2
patch from Adrian Irving-Beer <wisq@wisq.net> applied 
(closes: #328399) (closes: #326456)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh -e
 
2
## 01-cast.dpatch
 
3
## (Original made by Aurelien Jarno <aurelien@aurel32.net>)
 
4
##
 
5
 
 
6
if [ $# -ne 1 ]; then
 
7
    echo >&2 "basename $0: script expects -patch|-unpatch as argument"
 
8
    exit 1
 
9
fi
 
10
case "$1" in
 
11
    -patch) patch -f --no-backup-if-mismatch -p0 < $0;;
 
12
    -unpatch) patch -f --no-backup-if-mismatch -R -p0 < $0;;
 
13
    *)
 
14
        echo >&2 "basename $0: script expects -patch|-unpatch as argument"
 
15
        exit 1;;
 
16
esac
 
17
        
 
18
exit 0
 
19
 
 
20
@DPATCH@
 
21
                
 
22
--- /tmp/WithApacheSession.pm.old       2005-09-14 23:27:49.648664936 -0400
 
23
+++ ./lib/MasonX/Request/WithApacheSession.pm   2005-09-14 23:03:09.795603823 -0400
 
24
@@ -74,7 +74,7 @@
 
25
 
 
26
     my $self = $class->SUPER::new(@_);
 
27
 
 
28
-    return if $self->is_subrequest;
 
29
+    return $self if $self->is_subrequest;
 
30
 
 
31
     # backwards compatibility
 
32
     $self->{session_param_name} =