Project

General

Profile

Bug #15867

getting .../poms/current/poms/current/cron/... in crontab (which doesn't work)

Added by Marc Mengel over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
Start date:
03/13/2017
Due date:
% Done:

100%

Estimated time:
First Occurred:
Scope:
Internal
Experiment:
-
Stakeholders:
Duration:

Description

So basically, I updated some code to make poms installable via setup.py; which
included a local poms->. symlink, so things get imported as "import poms.webservice.xxx"
and so forth. Also added a index.py to set POMS_DIR, so we would work if we were
not setup via UPS. However, this ended up setting POMS_DIR to:

 
/home/poms/products/poms/current/poms

(where the last "poms" is via the symlink). This means further that the code that tried
to convert the previous
/home/poms/products/poms/vx_y_z/NULL/

into
/home/poms/products/poms/current/

by finding the rightmost "poms" and replacing what came after it, was confused, since
the rightmost poms was at the end now...

So a little fix in fc02d62d, we search for the "rightmost" poms except for at the very end of the string, by limiting us to the length of the string minus 1...

History

#1 Updated by Marc Mengel over 2 years ago

  • Start date changed from 03/14/2017 to 03/13/2017

#2 Updated by Marc Mengel over 2 years ago

  • Target version set to v2_0_1

#3 Updated by Marc Mengel over 2 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

#4 Updated by Anna Mazzacane over 2 years ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF