- Timestamp:
- 01/27/10 16:23:38 (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/debian/changelog
r306 r308 1 email2trac (1.2.0-1) stable; urgency=low 2 3 * Added an option to run_email2trac to set the PYTHON_EGG_CACHE 4 environment variable (-e|--eggcache), closes #174 5 Author: pepl at cpan dot org 6 Applied by: Bas van der Vlies 7 8 -- Bas van der Vlies <basv@sara.nl> Wed, 27 Jan 2010 16:17:41 +0100 9 1 10 email2trac (1.1.0-6) stable; urgency=low 2 11 -
trunk/run_email2trac.c
r202 r308 56 56 57 57 char **trac_script_args; 58 char *python_egg_cache; 58 59 struct passwd *TRAC; 59 60 struct passwd *MTA; … … 80 81 continue; 81 82 } 83 else if ( (strcmp(argv[i],"--eggcache") == 0) || 84 (strcmp(argv[i],"-e") == 0) ) { 85 i++; 86 python_egg_cache = argv[i]; 87 continue; 88 } 82 89 83 90 trac_script_args[j] = argv[i]; … … 86 93 trac_script_args[j] = NULL; 87 94 88 89 95 /* Check caller */ 90 91 92 96 check_username(MTA_USER); 93 97 MTA = getpwnam(MTA_USER); … … 102 106 return -2; /* 254 : Invalid caller */ 103 107 } 104 105 108 106 109 /* set UID/GID to Trac (or apache) user */ … … 122 125 } 123 126 127 /* Set PYTHON_EGG_CACHE env variable if we have been told to do so */ 128 if ( strlen(python_egg_cache) > 0 ) { 129 setenv("PYTHON_EGG_CACHE",python_egg_cache ,1); 130 } 131 124 132 /* Execute script */ 125 133 status = execv(trac_script, trac_script_args); 134 126 135 if ( DEBUG ) printf("Script %s execution failure (error=%d). Check permission and interpreter path.\n",trac_script,status); 127 136 return -1; /* 255 : should never reach this point */
Note: See TracChangeset
for help on using the changeset viewer.