How to fetch a package's commit messages as text?

I use a set of my own scripts for building everything from abs/aur from source.  I track dependencies, including makedepends, package groups, package splits, etc by scanning PKGBULDs to extract the info into my database.  My build script attempts to automatically show me the README and configuration options via "configure --help" or "cmake -LH", and after the package is built it shows me the namcap output so that I can approve the build and go on or change the PKGBUILD to correct errors.
I would really like to have my build script also show me the changelog, as a text file, for the package by fetching the commit messages from the Arch web interface, such as http://projects.archlinux.org/svntogit/ … &showmsg=1, but I don't know how to fetch that dynamic page as a text file. 
If it were a simple static page like the main page for archlinux.org I could get it with lynx -dump or html2text, but these don't give me anything useful for the package's "View Changes" pages.
I hope that seems like a simple problem to someone.  Please give me a clue how to fetch dynamic pages like that as text...
Last edited by sitquietly (2012-02-03 20:56:44)

karol wrote:Have you seen https://bbs.archlinux.org/viewtopic.php?id=134591 ?
Yes, of course, and it may be helpful if I have to dig into it's code, but by itself it gives markup (colorized text intended for a terminal emulator) rather than plain text.  If I dump its output into vim I still have what looks like trash.  I could filter out the markup.  Argh.
Any other help out there??

Similar Messages

  • How to fetch Error message

    Hi folks,
    I am new to c/c++.
    And i am finding it difficult to figure it out ..............
    char* APIParser::parseDocument(const char *xmlInput) {
              XMLParser parser;
              const char *doc;
              uword ecode;
              doc = xmlInput;
              if(doc == NULL)
    //Return XML output
                   return getDefaultXMLOutput(-1, 0, "XML input document is null");
              if (ecode = parser.xmlinit()) {
                   cout << "Failed to initialize XML parser, error " << ecode;
                   //return ecode;
                   return getDefaultXMLOutput(-1, 0, "Failed to initialize XML parser");
              if (ecode = parser.xmlparseBuffer((oratext *) doc, strlen(xmlInput), (oratext *) 0,
                   XML_FLAG_DISCARD_WHITESPACE)) {
                   cout << "Parse failed, error " << ecode << "\n";
                   //          return 3;
                   return getDefaultXMLOutput(-1, 0, "Parse failed");
              if (ecode = schema.initialize(&parser))     {
                   cout << "Failed, code " << ecode << "!\n";
                   //return 4;
                   return getDefaultXMLOutput(-1, 0, "Error in initialize Schema");
              root = parser.getDocumentElement();
              if (ecode = schema.validate(root, NULL )){
                   cout << "Validation failed, error " << ecode << "\n";
                   ub4* ub4;
                   unsigned char** path;
                   int i=0;
                   boolean value;
                   while((value = parser.xmlwhere(ub4, path, i++))){
                        cout<<ub4<<endl;
                        cout<<ub4<<path;
                   cout<<value;
                   schema.terminate();
                   //return 5;
                   return getDefaultXMLOutput(-1, 0, "Validation failed");
              return "";
    Where i am passing xmlInput which is a char*.
    Things work fine.
    I need to send back exact error message to client to debug the messages.
    How to fetch the messages, line number etc.
    By seing docs i wont be able to figure it out.
    Can any one send piece of code to fetch the error messages.

    If you access the FacesContext you find a method called
    getMessages()
    Return an Iterator over the FacesMessages that have been queued, whether or not they are associated with any specific client identifier.

  • How to fetch what are all the tables used in this TR no and Package name of

    Hi Friends,
    I have input of Transport Request no (E070-TRKORR).
    How to fetch what are all the tables used in this TR no and Package name of this Table.

    HI,
    FYI
    SELECT E071OBJECT_NAME, E070MDEVCLASS
    FROM E071, E070M
    WHERE TRKORR = YOU REQUEST NO.

  • How to fetch message comments using JMA API?

    Hi All,
    From telnet <host> 143, and tring get comments associated with a message works well as shown below.
    2 fetch 8 COMMENT ("/message/vendor/ms/follow-up-flag-status" ("value.shared"))
    * 8 FETCH (COMMENT ("/message/vendor/ms/follow-up-flag-status" ("value.shared" "completed")))
    How to fetch the same details using Java Mail API. I couldn't get any of these flags when added to FetchProfile before fetching. The last option is using IMAPFolder.ProtocolCommand.
    Please suggest if there is a better way to fetch message meta data as "comment" using JMA
    Regards,
    Venkat

    I don't know what JMA is. I assume you meant JavaMail.
    Sorry, there's no direct support for fetching that data.
    You might be able to get this to work using IMAPFolder.ProtocolCommand.

  • How to fetch geometry of values

    How to fetch geometry of values,
    I wanted to fetch the 4th positioned n 5th positioned values from the
    SDO_ORDINATE_ARRAY and one unique Column ID,
    sample data for the same follows
    SQL> desc TEST
    Name Null? Type
    GEOMETRY MDSYS.SDO_GEOMETRY
    ID NUMBER
    SQL> select id, geometry from test
    where rownum<7
    TEST GEOMETRY(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES)
    1 SDO_GEOMETRY(2001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, 6000, 4, 1, 1), SDO_ORDINATE_ARRAY(0, 1, 0, 408551.27, 2925997.25))
    2 SDO_GEOMETRY(2001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, 6000, 4, 1, 1), SDO_ORDINATE_ARRAY(.011493516, -.99993395, 0, 408442.69, 2925997.45))
    3 SDO_GEOMETRY(2001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, 6000, 4, 1, 1), SDO_ORDINATE_ARRAY(-.02636329, .999652428, 0, 408551.45, 2926096.46))
    4 SDO_GEOMETRY(2001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, 6000, 4, 1, 1), SDO_ORDINATE_ARRAY(0, 1, 0, 408551.77, 2926212.98))
    5 SDO_GEOMETRY(2001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, 6000, 4, 1, 1), SDO_ORDINATE_ARRAY(0, 1, 0, 408552.01, 2926314.81))
    6 SDO_GEOMETRY(2001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, 6000, 4, 1, 1), SDO_ORDINATE_ARRAY(1, 0, 0, 408470.67, 2926137.08))
    6 rows selected.
    SQL>
    another table TESTZ is created to insert the fetched values from TEST
    table
    SQL> desc TESTZ
    Name Null? Type
    TEST NUMBER
    ES NUMBER
    NR NUMBER
    The following pl/sql program is used for fetching the required data
    DECLARE
    CURSOR p_cur
    IS
    select id,geometry from test order by rownum ;
    es number;
    nr number;
    locus mdsys.sdo_geometry;
    BEGIN
    for i in p_cur
    loop
    locus := i.geometry ;
    es:=locus.sdo_ordinates(4);
    nr:=locus.sdo_ordinates(5);
    insert into testz values(i.idz,es,nr);
    end loop;
    END;
    ERROR at line 1:
    ORA-06533: Subscript beyond count
    ORA-06512: at line 20
    the same Script is working well for other data sets But its giving the
    following Errror for the ABOVE
    data set, the test table got 90,000 records
    please Suggest me the required Solution to fecth the 4th and 5th
    postioned values from SDO_ORDINATE_ARRAY ;
    Many thanks
    ZameeR

    As I said in another posting (this is a cross-post):
    drop table test;
    create table test (id integer, geometry mdsys.sdo_geometry);
    insert into test ( id, geometry ) values (
    1,SDO_GEOMETRY(2001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, 6000, 4, 1, 1), SDO_ORDINATE_ARRAY(0, 1, 0, 408551.27, 2925997.25)));
    insert into test ( id, geometry ) values (
    2,SDO_GEOMETRY(2001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, 6000, 4, 1, 1), SDO_ORDINATE_ARRAY(.011493516, -.99993395, 0, 408442.69, 2925997.45)));
    insert into test ( id, geometry ) values (
    3,SDO_GEOMETRY(2001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, 6000, 4, 1, 1), SDO_ORDINATE_ARRAY(-.02636329, .999652428, 0, 408551.45, 2926096.46)));
    insert into test ( id, geometry ) values (
    4,SDO_GEOMETRY(2001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, 6000, 4, 1, 1), SDO_ORDINATE_ARRAY(0, 1, 0, 408551.77, 2926212.98)));
    insert into test ( id, geometry ) values (
    5,SDO_GEOMETRY(2001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, 6000, 4, 1, 1), SDO_ORDINATE_ARRAY(0, 1, 0, 408552.01, 2926314.81)));
    insert into test ( id, geometry ) values (
    6,SDO_GEOMETRY(2001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, 6000, 4, 1, 1), SDO_ORDINATE_ARRAY(1, 0, 0, 408470.67, 2926137.08)));
    commit;
    select a0.id, c.column_value, e.column_value
    from test a0,
          (select b1.id, mod(rownum,5) rown, b2.*
             from test b1,
                  table(b1.geometry.sdo_ordinates) b2
          ) c,
          (select d1.id, mod(rownum,5) rown, d2.*
             from test d1,
                  table(d1.geometry.sdo_ordinates) d2
          ) e
    where ( c.id = a0.id and c.rown = 4 )
      and ( e.id = a0.id and e.rown = 0 )
    /Requires no external functions or packages.
    regards
    Simon

  • How to fetch file from app. server without complete filename?

    Hi,
    In my report I have to read data from txt file on application server.
    My file name on App. server conatain system id and date and time stam.
    my file path :- /User/IDD/S10009112007101525
    here,'User'  is dirctory
            'IDD' is folder in directory
            'S100' is system id
             '09112007' is date
             '101525'  is time in hour,miniute,second format.
    From my program I can only pass directory , Folder name,System Id,Date only. I don't have time value in my program.
    So please tell me how to fetch files without having time stamp value from app. server.
    Plz send me exact code.It's urgent.
    Message was edited by:
            Manisha Kadam
    Title was edited by:
            Alvaro Tejada Galindo

    Do you want to return the file to the user on click of button or something?
    Then, use web_show_document with http link which you are speaking about.
    Else download the file to client using Webutil.

  • How to fetch data in report related to fb03 , bkpf, bset table ?

    how to fetch data in report related to  fbo3, table bkpf, bset etc.
    if any body is having any report related to these tables then please share.

    Moderator message - Welcome to SCN.
    But please ask a specific questio - thread locked.
    Also, Please read Please read "The Forum Rules of Engagement" before posting!  HOT NEWS!! and How to post code in SCN, and some things NOT to do... and [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers] before posting again.
    Rob

  • How to do the Record Level commit in DB Adapter

    Hi,
    I am using Oracle JDeveloper 11.1.1.6.0 and SOA server 11.1.1.6
    Problem Description_
    I am fetching multiple records using File Adapter in BPEL process, After Fetching I am writing those records in Database using Database Adpter.
    If any error records comes the database adpater rollback the complete transaction and none of the records is inserted into the Database.
    **Can anyone please tell me how to do the record level commit in Database Adapter so that All the success records can be inserted into the database except the Failure record*.*
    I dont want to call the Database adpater in loop multiple times to insert each record as it hampers the performance.
    Thanks in Advance
    Sunil

    I believe you are polling a file and inside the BPEL, inserting the records into the database using the database adapter.
    so according to your requirement you can do any one of the following things...
    1. Instead of using the database adapter for inserting the record, you can call a Stored Procedure which it takes the record fields as input and it inserts the record into the table and does a commit at the end. when you follow this approach, make sure your data source is defined as Non-XA, otherwise you will face some errors.
    2. If you are using the database adapter insert operation only, inside the BPEL, for the partnerlink of the database adapter, go to the properties and for the property "idempotent", give a value of false.
    by doing this, what happens means, after calling the database adapter from BPEL through the invoke activity, the transaction is committed and from the next activity i mean after the invoke, a new transaction will be started but it will use the same thread though
    3. If you are using the database adapter insert operation only, inside the BPEL, for the partnerlink of the database adapter, go to the properties and for the property "NonBlockingInvoke", give a value of true.
    by doing this, what happens means, the database adapter insert operation will happen in a separate transaction and it will be committed, inside the BPEL after the invoke activity, a new thread and transaction will be started
    4. Also, if you are using the database adapter insert operation, don't follow the steps as mentioned in either 2 or 3, you can simply put a dehydrate activity after the invoke activity.
    According to your requirement, all the four approaches works. But my personal feeling, don't go for 4, instead 1 is better, 2 or 3 is also good.
    Hope this helps,
    N

  • How to change the package name for a msg class

    Can anybody tell me how to change the package name for a message class.
    and how will it effect in the rerport?
    thanks in advance
    kp

    >>and how will it effect in the report?
    You wouldn't see any direct effect on the Report.. But if you transport the report to QA & leave the Message class in Dev, it might result in syntax issues & you will not be able to execute the report. Just ensure that both of them get transported to QA & you will be fine.
    ~Suresh

  • How to fetch bank fields in fbl1n

    plz tell me the process how to fetch bank details of particular vendor in fbl1n.
    Moderator message: welcome to SCN, always search for available information before posting, show what you have done yourself when posting.
    Edited by: Thomas Zloch on Jan 19, 2012

    how to fetch two different field records of two different tables in a single row?
    i need to display in a single column
    I'm going to assume that you mean the second one.
    without using union query?
    Can't as far as I know.
    if i use union query i have to give equal both right and left columns
    I don't actually know what you mean by this and I'm not going to guess.
    I reckon Sarma's answer (although it does use union even tho you specified that you don't want to use it) is what you need. If it is NOT what you need, please reply with the specifics of your requirement. i.e. post create table statments and insert statements that will build a valid test case. Also post what results you expect along with what you have tried (the code not a description)

  • HT3529 How do I create a group to message several people at one time?

    How do I create a group to message several people at one time and keep it in my contacts to use frequently?  Such as co-workers or family member groups?

    GContacts is for both the iPhone and iPad. It can be found in the US App Store. Don't know what country you're in so I can't say for sure you can find it in your App Store. If you do a search on "contacts" in your App Store you should be able to find some contact manager apps.
    There is a way to create a contact with a group of email addresses.
    1. In Notes app create a list of email addresses separated by a comma.  Example [email protected],[email protected] Highlight the list and copy.
    2. In Contacts create a new contact and give it the name of the group you want.
    3. In the email field paste the list of email addresses.
    Note: you are probably wondering why you have to copy and paste the addresses into the email field. If you try to type the list into the email field, you will find that there is no way to type a comma in this field.
    4. Save the contact.
    5. When you create an email, select the group entry from contacts.
    You may get a message that the email address is invalid, but ignore the error, because the email should still be sent to all addresses.

  • Fetch the SAP Status Bar Message?

    Hi Experts,
    Pls. let me know that, How to pull/fetch the data (e.g.#) from SAP Status bar message, issued by SAP, while any creation takes place?
    e.g.
    When some thing (MB01) is created, SAP alert u with a Message, (like, saying that ''1234567890'' Document is saved/created) on the Status Bar! So, How to fetch this (#) SAP data in to my program?
    ThanQ.
    Message was edited by:
            Sridhar

    Sridhar,
    1.All the messages will be stored in TABLE-T100.You can fetch the message from this table.
    go to se11 and check T100 table.
    press ctrlshiftf10.
    in the sprsl field give it as EN.
    press f8.
    you will  be able to see all the messages.
    or
    double click on the message on the status bar.
    it will show you an help window.
    there you can get the application area followed by the msg number.
    (for ex Message no. AD399  AD-application area and 399 is the msg number)
    now go to se91.
    give the application area in the msg class
    you can see all the messages.
    2.If you want to raise your own message then you have to create a Message class and there you can give whatever the message you want.
    Report zsridhar message-id zsr.
    now double click on zsr you will be able to create you own message class where you can give you own messages which can be raised.
    If any doubts revert.
    K.Kiran.

  • How to fetch print and print preview variables

    hi everyone,
                          my requirement is as soon as sales order created. printout of that sales order will be taken at the same time email should be send to that particular customer.
    the problem is the email is sent as soon as we check the print preview itself.
    but the mail should be sent afte the pressing print button only.
    how to fetch print or print preview by program
    regards
    karthe

    Hi everyone,
    I have tried open form and close form
    The itcpp-tdspoolid eq '0' for both print and print preview.
    I have set the open form
    dialog = 'X'.
    have i got to set anything in open form.
    this is my open form and close form.
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
    DIALOG = 'X'
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
    RESULT = itcpp
    IF SY-SUBRC ne 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    else.
    if itcpp-tdimmed eq 'X' and itcpp-TDSPOOLID ne ''.
    endif.
    regards
    karthe

  • Calling procedure in another procedure, how to fetch values

    I have couple of procedure in a package and I am trying to call procedurea in procedureb.
    TYPE T_CURSOR IS REF CURSOR;
    PROCEDURE ProcedureA (acct IN number, o_cur OUT T_CURSOR)
    AS
    BEGIN
          Open o_cur for
           SELECT A, B, C, D, E, F FROM DEMO;
    END ProcedureA
    PROCEDURE ProcedureB (param1 IN number, param2 IN number)
    AS
    get_cursor                 T_CURSOR;
    BEGIN
    ProcedureA(111, get_cursor);
    END;How to fetch ProcedureA values in ProcedureB? And also I want to get only columns A and B in ProcedureB.

    >
    How to fetch ProcedureA values in ProcedureB?
    >
    Try something like this
    TYPE rectype IS RECORD (colA  demo.a%TYPE, colB demo.b%TYPE    );
         rec1  rectype;
    LOOP
      FETCH get_cursor   INTO rec1;
      EXIT WHEN get_cursor%NOTFOUND;
            DBMS_OUTPUT.PUT_LINE(rec1.colA);
         END LOOP;
           DBMS_OUTPUT.PUT_LINE('end test');

  • How to fetch the description of a field

    Hi All,
    Could anybody please tell me , how to fetch the field description for a given field name .Any function module for it or how to fetch it ??
    Thanks in Advance.
    Regards,
    Rakesh.

    Hi,
    Copy paste this code and at the end of the code check the table len_table
    data: len_table type standard table of DFIES .
       CALL FUNCTION 'DDIF_FIELDINFO_GET'
        EXPORTING
        tabname              = 'JKAP'                   {color:red}" change as per your requirement{color}
       FIELDNAME            = 'VBELN'              {color:red}" change as per your requirement{color}
    *   LANGU                = SY-LANGU
    *   LFIELDNAME           = ' '
    *   ALL_TYPES            = ' '
    *   GROUP_NAMES          = ' '
    *   UCLEN                =
    * IMPORTING
    *   X030L_WA             =
    *   DDOBJTYPE            =
    *   DFIES_WA             =
    *   LINES_DESCR          =
    TABLES
       DFIES_TAB            = len_table
    *   FIXED_VALUES         =
    * EXCEPTIONS
    *   NOT_FOUND            = 1
    *   INTERNAL_ERROR       = 2
    *   OTHERS               = 3
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Check out the internal Table len_table.
    Hope it helps you,
    Regards,
    Abhijit G. Borkar

Maybe you are looking for

  • Can you connect 2 apple TV's to the same iTunes account in 2 different houses ?

    Can you connect 2 apple TV's to the same iTunes account in 2 different houses ?

  • Print Preview in PO

    Hi All, How do i make the Print preview buttion in Display mode in ME22N?(change PO) We have configured Release strategy so that the user should not print PO directly from this Tcode. After making the respective releases only,they have to print throu

  • Macbook Pro WEAK monitor hinge AFTER apple repair! PLEASE help!

    Hey everyone, I am using a 2010 MBP with a 15" hi res display. I had the computer for 3 months with no problems and then the display broke (wouldnt turn on) so apple replaced it. Once they replaced it, i noticed the display was not as strong. To help

  • Background Image In Table Cell

    I'm not sure what I'm doing wrong or missing here. This is the first time that I'm using an image as a background. I've made a table with a 100% width with 3 colums and 3 rows. The left and right table cells have been merged and the 3 middle rows are

  • DP3 project won't load into DP4 mapping workbench

    I have a toplink mapping project created with Toplink DP3r2. I tried to load it using the mapping workbench in Toplink DP4 (Build 050715). Here's the error: oracle.toplink.workbench.framework.OpenException: java.lang.NullPointerException      at orac