Project

General

Profile

Feature #4888

'+' qualifier behavior to be specifiable per product

Added by Christopher Green over 5 years ago. Updated about 5 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
10/31/2013
Due date:
% Done:

0%

Estimated time:
Experiment:
-
Duration:

History

#1 Updated by Christopher Green over 5 years ago

We would like to be able to specify in .upsfiles configuration be able to enforce behavior equivalent to adding '+' in front of every qualifier. For our use of relocatable UPS, there are no circumstances I can think of where the default behavior would not be extremely problematic if it were triggered.

#2 Updated by Marc Mengel about 5 years ago

  • Subject changed from '+' qualifier behavior to be specifiable per installation. to '+' qualifier behavior to be specifiable per product

Discussed with Chris Green. He wants this really on a product by product basis.

We can do this already, by checking ${UPS_REQ_QUALIFIERS}, for example:


File=table
Product=foo

Group:

Flavor=ANY
Qualifiers=

Flavor=ANY
Qualifiers=foo:bar

Common:

Action=check_qualifiers
    Execute(echo '${UPS_REQ_QUALIFIERS}' | sed -e 's/[a-z0-9]//g' -e 's/\(+:\)*+/true/' -e 's/:.*/false/' , NO_UPS_ENV, QUALSOK)

Action=setup
    ExeActionRequired(check_qualifiers)
    If( $QUALSOK )
       ProdDir()
       SetupEnv()
       Execute(echo "Req Qualifiers are: ${UPS_REQ_QUALIFIERS}", NO_UPS_ENV)
       Execute(echo "Act Qualifiers are: ${UPS_PROD_QUALIFIERS}", NO_UPS_ENV)
    Else()
       Execute(echo "This product needs to be setup with required qualfiers", NO_UPS_ENV)
       Execute(/bin/false, NO_UPS_ENV)
    EndIf( $QUALSOK )
End:

#3 Updated by Marc Mengel about 5 years ago

  • Status changed from New to Rejected


Also available in: Atom PDF