Pacman variable definitions

I develop pajman. a boosted bash based package manager.
What I found is that it would be easier to understand and implement pacman alternatives if variable names where in a concrete file to be able to check them.
Pacman should have a file in which we have all the variables that sit in configuration or information files (/etc/pacman.conf, /var/lib/pacman/local/*/depends, etc).
Right now if we look for %DEPENDS% we get that it is inlined in the code:
[root@patito src]# busca %DEPENDS%
gensync
129: echo "%DEPENDS%" >>depends
updatesync
132: echo "%DEPENDS%" >>depends
convertdb.c
102: fputs("%DEPENDS%nn", fp);
db.c
450: if(!strcmp(line, "%DEPENDS%")) {
581: fputs("%DEPENDS%n", fp);
[root@patito src]#
if there was a file with all variables, pajman would be able to check if there is something new to keep in mind and tell me.
I could check if the vesion of pacman changed and then using cvs download this new version of the variable definitions.
This file could also implement a clear explanation of what is what every variable means and what it does. This way I could also check if the explanation changed and know that i have to update pajman, because the few things that it does may not work anymore.
i suggest having something like:
definitions.c
23: VARNAME_DEPENDS="%DEPENDS%";
24: // DEPENDS CONTAINS A LIST OF PACKAGES THAT ARE NEEDED FOR THIS PACKAGE TO RUN
25: // ASSOCIATED TO EACH PACKAGE YOU CAN FIND REQUIRED VERSION INFORMATION (ex: kdelibs>=3.2.3)
I post this in the forum first to see other opinions about it.

fputs("%DEPENDS%n", fp);
%*% = %DEPENDS%
read until end of line:
n", fp);
what's the point of that?
what i want to do is to be able to know when pacman has new/modified features.

Similar Messages

  • Add new variable definition

    how to add new variable definition in report painter?

    Hi,
    in Transaction GR32 use menu ->Report Writer -> Variable -> Create
    regards
    Walter  Habich

  • Unable to refresh variable definition in ODI Load Plan

    Hi All,
    We recently removed the variable definition and changed it to default value. After that we tried to refresh the variable in  Load plans / Scenarios but it still shows old SQL. Can you please suggest if there is a way to force refresh the variable definitions in load plans? We tried removing and re-adding the variable but that didn't help. Last resort will be to recreate the load plans but we are trying to avoid that.
    Thanks,
    Andy

    Hi Alastair,
    Thanks for the reply. Actually variable is returning the correct value. Only problem is that in the Load Plan's variable section variable still shows old definition even after trying to refresh n number of times and also tried removing it from load plan and then inserting it back in after changing the definition. We don't want to migrate load plan like this. Kindly suggest.
    Thanks,
    Andy

  • What about these variable definitions?

    I inherited a set of FM books, and I don't understand the variable definitions. What is the difference in the several ways that "< >" is used in these examples?
    ProductLine       <italic>Cheese
    ProductName    <skim milk>
    Company          </>S&J</>
    CompanyLong    Smith and Jones Dairy
    Is one or more variable ill-defined?
    Thanks!

    <italic> implies that a Character Format of that name exists and is to be applied to the word "Cheese" which is inserted in the flow.
    <skim milk> makes no sense at all. What does it show up as, if anything?
    </>S&J</> is syntactically the same as <Default ¶ Font>S&J<Default ¶ Font>
    The leading </> might make sense if the author thought there was some risk of a format override in the paragraph that needed to be turned off. The trailing </> is at the very least unnecessary.

  • Where to put xsl:variable definition

    I apologize in advance if this is a really obvious question/answer for most of you.
    I want to use this definition code to create a variable called color:
    *<xsl:variable name="color" select="'red'"/>*
    I want to include this code in my RTF template to display the contents of that variable:
    *<?$color?>*
    My question is this: where do I put the definition code? I've tried it in several different places, none of which have worked: at the top of my RTF template, on the top row of the table where I'm referring to it, and so forth.
    When I run the preview, I get the typical error screen with this key line: Variable not defined: 'color'.

    The subtemplate idea works quite well (mostly).
    In my subtemplate, I defined this:
    <?template:Format1?>
    <?if:number(Sales) gt 1000000?><?attribute@incontext:color;'red'?> <?attribute@incontext:font-weight; 'bold'?><?end if?>
    <?end Format1?>
    In my template field, I call Format1 like this:
    <?call@inlines:Format1?><?end call?>
    Sure enough, my values are shown in bold red. Yay!!!
    But now I've got extra vertical space in the affected cells. I've used table functions to align the values at the bottom of the cell. If I don't apply this conditional formatting, the row is what I'll call a "normal" height. When I apply the conditional formatting, the bold red numbers are displayed at the bottom of the cell as expected, but the row is twice as tall as its "normal" height.
    The difference is found in the page source for the browser page. The <tr> tag shows a height of 13.216pt for the "normal" rows, but 25.933pt for the rows affected by the formatting. For some reason, BIP wants to generate a much taller row when it contains these formatted results.
    I've experimented with attribute tags such as <?attribute@incontext:linefeed-treatment;'ignore'?> and <?attribute@incontext:height;14?>. I've used Word table formatting to fix the height of the row at exactly .3 inches. I removed the bold tag, and just kept the font color. None of those ideas was successful in removing the extra height.
    Thoughts?

  • Const not allowed in global variable definitions?

    Can someone tell me why the compiler complains when I do this:
    const int MY_CONST = 100;
    char *myStr[MY_CONST];
    This is being done outside of a function, as I want myStr to be a global variable.
    I get an error saying the initializer must be constant. I've tried this with other compilers, and they don't complain. Any ideas?
    Thanks.

    In C a variable of type int remains a variable, even if the const keyword prevents it is modifiend during program life. Given this, C does not permit to use it in a array definition since it is not a "constant". As far as I know C++ does permit this declaration.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Env. Variable definition

    Hi all.
    I defined several Oracle specific env. variables via export both
    from root and oracle user accounts. I log off and back on and
    try to echo any of them...I only get a blank line back.
    The documentation said to put them in .profile in /usr/oracle.
    Did so, but to no avail. Another suggested that I put them in
    .bashrc. Did so...but I get errors on login as follows:
    /usr/oracle/u01/app/oracle/product/8.0.5/bin/dbhome: awk:command
    not found
    Cannot locate ORACLE_HOME
    ORACLE_HOME = [] ? \c
    {get a blank line here; I hit return}
    bash: sed: command not found
    The .bashrc file definitions I input are in the user specific
    aliases and function section. The normal source global
    definitions follow that.
    Goodness, what am I doing wrong? Do I have to define any of the
    Oracle env. variables in the root .bashrc file? It doesn't seem
    from the documentation that it should be so convoluted.
    Any help (and explanation) is appreciated.
    craig
    null

    Using bash? try /home/username/.bash_profile
    Kevin
    Kelvin (guest) wrote:
    : Daniel Tremblay (guest) wrote:
    : : I defined my env.var. in /etc/profile (as root, yes)
    : : in there I had
    : : ORACLE_BASE=/u01/app/oracle
    : : ORACLE_HOME=$ORACLE_BASE/product/8.0.5
    : : LD_LIBRARY_PATH=$ORACLE_HOME/lib
    : : PATH=$PATH:$ORACLE_HOME/bin
    : : ORA_NLS33=...
    : : export ORACLE_BASE ORACLE_HOME LD_LIBRARY_PATH ... etc
    : : etc...
    : : Hence any and all users using the workstation will have the
    : : correct env. vars.
    : : I hope this helps.
    : : craig (guest) wrote:
    : : : Hi all.
    : : : I defined several Oracle specific env. variables via export
    : : both
    : : : from root and oracle user accounts. I log off and back on
    and
    : : : try to echo any of them...I only get a blank line back.
    : : : The documentation said to put them in .profile in
    : /usr/oracle.
    : : : Did so, but to no avail. Another suggested that I put them
    in
    : : : .bashrc. Did so...but I get errors on login as follows:
    : : : /usr/oracle/u01/app/oracle/product/8.0.5/bin/dbhome:
    : : awk:command
    : : : not found
    : : : Cannot locate ORACLE_HOME
    : : : ORACLE_HOME = [] ? \c
    : : : {get a blank line here; I hit return}
    : : : bash: sed: command not found
    : : : The .bashrc file definitions I input are in the user
    specific
    : : : aliases and function section. The normal source global
    : : : definitions follow that.
    : : : Goodness, what am I doing wrong? Do I have to define any of
    : the
    : : : Oracle env. variables in the root .bashrc file? It doesn't
    : seem
    : : : from the documentation that it should be so convoluted.
    : : : Any help (and explanation) is appreciated.
    : : : craig
    : /etc/profile is used for all login users. Local variables
    should
    : be placed under $HOME/.profile (ie users home directory),
    though
    : it works if /etc/profile is updated as it is system-wided.
    : dbhome is created by root.sh after Oracle installation, and is
    : used to setup the value of $ORACLE_SID. You can added
    : ORACLE_SID=mysid onto the $HOME/.profile and ORACLE_ASK=NO to
    : bypass the "ORACLE_HOME = [] ?". (remember to export them)
    : Check if your $HOME is /usr/oracle; .profile must be placed
    under
    : $HOME.
    : Kelvin
    null

  • Variable Definitions - weird results

    Using Flash8 I am getting some weird results when defining
    variables.
    In my Actionscripts I am trying to define and assign
    variables on the same line and then trace it as below :
    var light_critical_colour:String = "#FF0000";
    trace ("light_critical_colour = " + light_critical_colour);
    If I create an new blank fla file and place this in the first
    frame, scene 1, it works as you would expect and opens a trace
    window and returns "light_critical_colour = #FF0000". Also if I
    remove the first line then the result is "light_critical_colour =
    undefined" again as expected.
    My issue is that I have another fla file which i have created
    from scratch as per the example above. I have 2 scenes, scene 1 is
    the preloader and scene 2 is the main user screen. It does not
    matter where I place the code even in the the first frame of scene
    1, the var definition seems to be ignored and if I remove the var
    definition line and just have "trace ("light_critical_colour = " +
    light_critical_colour);" I get "light_critical_colour =" rather
    than "light_critical_colour = undefined" as expected.
    Does anyone have any idea's ?
    Thanks

    More Information:
    I have managed to get around this by cutting and pasting my
    ActionScript and objects into a new fla and its now working fine.
    If I was not such a ActionScript newbee I would suggest that
    this is a Flash8 bug !
    This sure managed to waste lots of my time.........

  • Use lpad function in local variable definition

    Hi
    I want to define a variable with lpad function applied to a data field. For example C_CHECK_NUMBER is the data field. I want to left pad the field with 0's to make it 6 digits long and store it in a variable. Something like this
    <?variable@incontext:PADDED_CHECK_NUM;xdofx:lpad(C_CHECK_NUMBER,6,’0’)?>
    <xsl:variable xdofo:ctx="incontext" name="PADDED_CHECK_NUM" select="xdoxslt:lpad(C_CHECK_NUMBER,6,’0’)"/>
    Neither of the above works.
    Thanks
    Kishore

    <xsl:variable xdofo:ctx="incontext" name="PADDED_CHECK_NUM" select="xdoxslt:lpad(C_CHECK_NUMBER,10,’0’)"/> worked for me. I missed the '$' sign to retrieve the value.

  • About variable definition and build error

    I am new to the motion control card. I try to use VC++ to build my application. But after I have done everything written in the examples to add the include and library path, there are still tons of errors when building the application. It seems that the error has something to do with the order of the "#include"s, because changing the order will result in different error codes. But I am not sure what the right order is, and I am not sure whether this is the problem. Any ideas?
    And if nothing will work, is i32 equals to long in c++? Can I subtitute these types with the corresponding types in C++? Will this solve the problem?
    Thanks a lot!
    Part of my codes and error information are as follows:
    #include "flexmotn.h"
    #include "NIMCExample.h"
    #include <stdio.h>
    #include <time.h>
    #include "stdafx.h"
    #include "GrindGame.h"
    #include "GrindGameDlg.h"
    #include <vector>
    #include <stdlib.h>
    #include "math.h"
    #include "engine.h"
    #ifdef _DEBUG
    #define new DEBUG_NEW
    #endif
    using namespace std;
    i32 xLength;
    vector <i32> xPosition, yPosition1, yPosition2;
    // global variables
    u8 boardID;     // Board identification number
    u8 vectorSpace;   // Vector space number
    u16 csr = 0;    // Communication status register
    u16 axisStatus;   // Axis status
    u16 status;
    u16 complete;    //Move or blend complete statusi16 adcValue;         // ADC value read
    //Variables for modal error handling
    u16 commandID;    // The commandID of the function
    u16 resourceID;   // The resource ID
    i32 errorCode;    // Error code
    Only this small portion has had many errors, such as:
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(68) : error C2146: syntax error : missing ';' before identifier 'xLength'
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(68) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(68) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(69) : error C2923: 'std::vector' : 'i32' is not a valid template type argument for parameter '_Ty'
    1>        e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(68) : see declaration of 'i32'
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(75) : error C2146: syntax error : missing ';' before identifier 'boardID'
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(75) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(75) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(76) : error C2146: syntax error : missing ';' before identifier 'vectorSpace'
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(76) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(76) : error C2086: 'int u8' : redefinition
    1>        e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(75) : see declaration of 'u8'
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(76) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(77) : error C2146: syntax error : missing ';' before identifier 'csr'
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(77) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(77) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(78) : error C2146: syntax error : missing ';' before identifier 'axisStatus'
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(78) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>e:\docu\visual studio 2005\projects\grindgame\grindgame\grindgamedlg.cpp​(78) : error C2086: 'int u16' : redefinition

    bibo,
        Your code looks fine in general, but there is something to consider.  According to this document, Visual C++ in .NET is not supported.  But, C code will work within it.
    http://digital.ni.com/public.nsf/websearch/6725330​5A52EFB1986256E94005945D2?OpenDocument
        I would try working from the C examples, which will be in a folder similar to: C:\Program Files\National Instruments\NI-Motion\FlexMotion\Examples\C.  Let me know if you have more questions!  Thank you.
    -Allison S.
    Applications Engineering
    -Allison S.
    Calibration Services
    Product Support Engineer

  • Variable definition

    Hi Experts,
    I found out that we have used one variable with SAP Exit processing(Business Content Variable)...where can I find coding for this variable to understand its funtioning?For user created variables,I know that we can find in CMOD.
    I have to delete one query which I created to test in DEV...how can I delete it...its giving message ...'cannot be deleted'...
    Regards,
    Hayward.

    Hi,
    I found out that we have used one variable with SAP Exit processing(Business Content Variable)...where can I find coding for this variable to understand its funtioning?For user created variables,I know that we can find in CMOD.
    Some Times these SAP exits are not suitable as client requirenments, so we need to go for Customer Exit codes and write code in CMOD , In SE37 you give SAP exit variable name like Star  SAP exit variable name start and check it,.
    See Customer Exits in the below url.
    http://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
    I have to delete one query which I created to test in DEV...how can I delete it...its giving message ...'cannot be deleted'...
    Check authorizations and delete it.
    Thanks
    Reddy

  • Input variables definition in jobType

    Hello,
    I am trying to develop new job Type to perform transport of tablespaces
    and would like to define input variables that can be chosen as oracle_database type
    for source and target databases.
    I do not think adding targets to the job will satisfy it since as far as I understood
    there is no control in the index value of added targets to the job so I won't be
    able to identify which db was source and which destination.
    I was able to define input boxes for variables but they just text boxes where I should
    insert some value, however I would prefer to choose target from selection list
    It would be nice if it can be defined as steps before job submit to provide source and destination
    targets for the job.
    Could you please help me to figure out how to do it and/or might be point to docs/examples
    where it is shown
    Thanks,
    Andrey

    Hi Andray,
    This is "single-execution-multiple-target" mode and default UI does not support this option since you want to select source and destination targets for same job execution.
    You may look at Multi-Task job type option to implement what you are looking for
    - Go to Job Activity page, in create job lis, select "Multi-Task" and click Go button
    - Provide Job name, and select "Different Target for different tasks" option for Targets
    - For each of the tasks in tasks tab, you can provide different targets for each task. You could have task1 that would run a SQLScript or RMANScript job and then you could have task2 that could run OSCommand job on a different target based on "successOf" or "failueOf" dependency.
    Hope this helps.

  • Basic question: definition of variables for CreditRating example

    Hi,
    I am trying to learn BPEL, and tried to implement the Credit Rating example from quickstart.pdf (first example). When I try to deploy the process, I get errors indicating the variables ssn and creditRating are not properly defined in the .bpel file.
    I am pasting the errors and the lines of code refered to below. Would appreciate any pointers.
    ERRORS:
    Error(30):
    [Error ORABPEL-10014]: unresolved variable
    [Description]: in line 30 of "D:\OraBPELPM_1\integration\jdev\jdev\mywork\Workspace1\CreditFlow1\CreditFlow1.bpel", Variable "ssn" of the <receive> is not defined.
    [Potential fix]: make sure the variable "ssn" is defined and in the scope of this activity.
    Error(30): [Error ORABPEL-10011]: missing variable [Description]: in line 30 of "D:\OraBPELPM_1\integration\jdev\jdev\mywork\Workspace1\CreditFlow1\CreditFlow1.bpel", <receive name="receiveInput"/> is missing variable definition. [Potential fix]: Make sure to use the variable attribute to assign the variable to this receive.
    Error(45):
    [Error ORABPEL-10014]: unresolved variable
    [Description]: in line 45 of "D:\OraBPELPM_1\integration\jdev\jdev\mywork\Workspace1\CreditFlow1\CreditFlow1.bpel", Variable "creditRating" of the <invoke> is not defined.
    [Potential fix]: make sure the variable "creditRating" is defined and in the scope of this activity.
    Error(45):
    [Error ORABPEL-10033]: input variable not defined
    [Description]: in line 45 of "D:\OraBPELPM_1\integration\jdev\jdev\mywork\Workspace1\CreditFlow1\CreditFlow1.bpel", <invoke/> missing input variable specification.
    [Potential fix]: make sure to use attribute inputVariable to specify the input message.
    CODE:
    line30:
    <receive name="receiveInput" partnerLink="client" portType="client:CreditFlow1" operation="initiate" variable="ssn" createInstance="yes"/><!-- Asynchronous callback to the requester.
    line45:
    <invoke name="callbackClient" partnerLink="client"
    portType="client:CreditFlow1Callback" operation="onResult"
    inputVariable="creditRating"/>

    looks to me that there are no variables (or at least not these ones) defined,
    so did you create these variables?
    by default if you start with a sync/async template we create inputvarible and outputvariable based on the wsdl message definition ..
    hth clemens

  • Problem with hierarchy variable while displaying query in Portal

    Hi,
    I came up with an problem with a query in the portal.  The problem is :
    I have one query which is displayed in the portal. The Query has hierarchial selection criteria. I am executing the same query using analyzer. Its taking the variable from the selection and displaying it on the analyzer. I have used the option to " display the query on web " from the BEX query designer. From there its opening and displaying the results with the given selection criteria.
    Where as when i open the query seperately in portal, its not displaying the results.
    I came to know from one of my colleague that the porblem is with the Web item and the hierarchial variable declared in WAD  was different from the variable declared in the BEX Query designer.
    I never Worked with WAD. I tried finding out the variable definition. But i was unable to find out where the Hierarchial variable was defined.
    Please help me out regarding the same.

    The problem is sovled.
    Poornima.

  • Default value for variable are not within permitted value range (precalc)

    Hello BW community
    Issue:
    I have created a variable (Characteristic Value/ Manual input-default value) and use the precalculated value set (details-basic settings). In the further variable definition I could select the  precalculated value set in 'Default values', which I have defined beforehand in the broadcaster..
    The precalculated value set in the broadcaster settings is just based on a master data query on 0CUSTOMER.
    Error:
    The variable gets the error E991/R9E Errors: Default values for variable 'XXX' are not within permitted value range.
    The detail description of the error is: You defined default values for variable 'Sold-to party precalc value set for manuel input' that are not appropriate for the variable type; for example, a range is defined as a default value for a variable that only permits a single value.
    So please has someone had the same issue and found out how to solve it? It would be excelent to get good solution for this issue.
    Best regards and thanks
    Christian
    PS-1: System BW 701 / SAPKW70105
    PS-2 : there has been a SDN entry with the same topic but not resolved too.
    link: /thread/980839 [original link is broken]

    Hello,
    Thanks for your response.
    I should have mentioned that in my post. I tried this very first time. I thought that this is the place where you provide default value. But I got following exception at that time, so I thought, may be this is used for something else.
    <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
    javax.faces.FacesException: javax.servlet.ServletException: OracleJSP error:
    oracle.jbo.NameClashException: JBO-25001: Object viewAllInd of type Control Binding Definition already exists.
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:415)Do I need handle something else when you put the default value?
    Thanks,
    Jai

Maybe you are looking for