Alternative to ABS with this little function - comments please

I've been using svn as an alternative to ABS to pull down specific packages for building.  Here is what I have in my ~/.zshrc or ~/.bashrc.
1) Is there a more efficient method of implementation?  Perhaps in the step where I validate the user provided package name?
2) Any comments are welcomed.
https://gist.github.com/graysky2/123a92d045bb02ce7634
Last edited by graysky (2014-08-14 22:02:16)

@Allan - Didn't know abs took tokens like that.  Pretty neat.  I see two advantages of my method:
  1) Users don't need to know which repo the package is in (core, extra, or community) since the scriptlet figures it out.
  2) Users can optionally get the files associated with trunk rather than what's in the repos.
Thanks for the reply!
Last edited by graysky (2014-08-15 19:01:14)

Similar Messages

  • This email address is already in use or you may already have an Apple ID associated with this email address. Please try again or sign in using your existing Apple ID.

    My current Apple ID, for which all of my content has been downoaded (e.g., music, apps) is associated with a work email address that I will no longer have access to in the near future.  In my Apple ID account, I noticed I had two alternate emails listed, one is my .me account and the other is my .gmail account.  I use my .gmail account, and it is the primary email I use with friends and family.  I noticed both were not verified, and when I tried to, it said they were both associated with other accounts.  I was able to log into a separate Apple ID account I must have set up at tone point with my .gmail, and I changed the email address to a new one I created.  I also deleted the gmail account from any other Apple-relted account I could think of.  I am still gettgin the same error message when I try to add it to my current Apple ID: "This email address is already in use or you may already have an Apple ID associated with this email address. Please try again or sign in using your existing Apple ID."
    My concern is this: with FaceTime and now iMessage, it seems more important than ever that I am able to use my correct email address.  With iOS5 beta, I cannot enter either my .gmail or.me accounts under "You can be reached for messages at:" as I get an error stating: Unable to verify email because it is already in use."
    How can I remedy this issue and assign my .gmail account to my Apple ID?

    Re: Cant verify Apple ID
    created by kelly218 in iTunes Store - View the full discussion
    I just spoke with a technician at Apple.  I hsven't been able to verify because the wife has the phone.  but he said all that you need to do is:
    1) Go to Settings --> iTunes Store and login with your Apple ID and pwd
    2) Go to Settings --> iCloud and login with your Apple ID and pwd
    seems that the phone requires you to login to the store first...

  • When trying to verify the email address, I get the following message. Please help. This email address is already in use or you may already have an Apple ID associated with this email address. Please try again or sign in using your existing Apple ID.

    When trying to verify the email address, I get the following message. Please help. This email address is already in use or you may already have an Apple ID associated with this email address. Please try again or sign in using your existing Apple ID.

    Me too. I try to verify and i get the same message.
    I've created 3 alternate e-mail addresses and tried creating new accounts.
    Same Result!
    This is bullsh!t. How the **** can all 4 of my attempts result in the same freakin error???

  • Clueless with this little bug

    I'm a little loss with this error. I really don't know where to start but, i'll try to give as much information as possible. I'm hoping one of you gurus can shed some light to the topic.
    I have a page where I initially check if the page loaded from a post, with the following code:
    if (request.getMethod().equalsIgnoreCase("POST"))
    now the post is suppose to come from another page. The reason why I check if it's a post, is if in case a user tries to access the page without going through the first page that posts to it, i redirect it
    so the if statement goes with an
    else {
    response.sendRedirect("firstpage.jsp");
    return; }
    if it's a post i continue drawing the page and showing my form. Now there are no problems when I send a post from firstpage.jsp. But the problems arise when I test my code by trying to go straight to the page by typing the address in my browser. I don't get a Java error but a microsoft internal browser error (ie 5 until now). I noticed that the error ocurs while loading an image from my header of the page. If it helps, my header is inlcluded.
    Now I tried commenting the if statement, and everything loaded fine, even if try to go directly to the page by typing the address, but then I don't get to redirect. I'm really at lost here, can someone give any idea what it could be?

    Ok now this is becoming annoying. I mentioned above that I took of the alpha code for my image links and everything worked fine. Well I made a new page and I have similar code. It looks like this:
    if (request.getMethod().equalsIgnoreCase("POST")) {
    // some validations with beans
    if ( valid ) {
    // some bean procedures
    response.sendRedirect("newpage.jsp");
    return; }
    else {
    // display invalid message html embedded }
    the rest is HTML below.
    The microsoft internal error occus when I load my left menu. My left menu is an included jsp file. Basically it checks who the user is and displays the appropriate menu. The POST comes from the same page. I have similar pages with this kind of design and everything runs fine. Does anyone have any idea why I get an error?
    My page is basically divided into 5 parts. The whole page is made of a 3 X 3 table. The first row's columns are merged and the make my header. I include a Header.jsp. In the second row, the first column is the left menu, again another inluded jsp file. The 2nd column in the middle is my body, which contains the code above. The 3rd column is the right menu, which is currently empty. Last row's columns are merged and is the footer with another inluded Footer.jsp file.
    I viewed the source when I got the error, the page seems to break in the middle of my LeftMenu.jsp. I was able to load the menu option, but when I reach the links, the HTML gets cut. I finished loading the header, but haven't loaded the rest of the parts of the page.
    I really hope one of you gurus can point out what I'm doing wrong. I have pages that are the same, and things go fine. I'll go run through the code again, thanks again for all the help.

  • Help with this cool function: =SUMIF(Table 1::$Month, COLUMN()−1, $Cost)

    Hello,
    I am a novice with respect to spreadsheet functions and needed a a cashflow spreadsheet.  I found this one (Download Cashflow Tracker for Numbers (iWork 09).) which is perfect but the author, I suspect, has not updated his website in years.  I attempted contacting him and received no reply.
    I receive an error with the following function:
    =SUMIF(Table 1::$Month, COLUMN()−1, $Cost)
    This occurs when I enter a date in the expense or income table.  Entering the date is required to make the spreadsheet work but when I do I receive an error that a number is expected when a date is entered.
    Can anyone give me some advice?  I would really like to use this spreadsheet.
    Thanks!
    Steve

    What I have found the simplest approach has been:
    1. Cut the Summary by Category table and paste it into the Transaction sheet, giving something like this (after rearranging renaming, etc, as desired):
    2. Make sure the links between the two table are still working, make their appearance the way you like, then duplicate that sheet for the other months.  Each sheet will then have its separate set of two interconnected tables.
    3. Copy paste one of the Summary tables back to the Summary sheet, rename it as desired, and set it up with formulas referencing the tables in the monthly sheets you have set up, something like this:
    If you want your summary by month you would set up 12 columns in the main 'Summary by Category' table, with each column referencing a different sheet.  Your Budget could be a row above each Actual figure, if you like, with difference in a row below that.
    This approach keeps the formulas simple and avoids having to set up fancy SUMIFS extracting data for each month from one big Transaction table.
    SG

  • HT1430 I have no sound playing videos from YouTube or playback of videos recorded with this iPad. Suggestions please

    Hello, I have no sound playing videos and no sounds when playing videos r escorted with this iPad. Sound. Is turned on under settings would appreciate any help please

    Sound is not turned on in Settings (except for alerts). Sound is controlled by the volume up and down buttons on the side of the iPad (in portrait mode). Make sure that sound is turned up with those buttons.
    Another thing to check: if earphones are plugged in the iPad speaker is silenced.

  • My iPad 4 tried to open application but repeatedly iCloud asked for login with apple id password. I put my apple id password correct,even i reset it again but still it does not accept in iPad .i am bored with this 3rd class application.please help

    My iPad 4 tried to open application but repeatedly iCloud asked for login with apple id password. I put my apple id password correctly,even i reset it again but still it does not accepted in iPad .i am bored with this  class application.please help.After every 1 second icloud logoin asked.

    Find Apple ID
    https://iforgot.apple.com/applied
    iPad: Unable to update or restore
    http://support.apple.com/kb/ht4097
    iTunes: Specific update-and-restore error messages and advanced troubleshooting
    http://support.apple.com/kb/TS3694
    If you can’t update or restore your iOS device
    http://support.apple.com/kb/ht1808
     Cheers, Tom

  • Hi there, hope somebody could help me with this little issue I am having

    Hi there,
    First of all I want to say that I am very pleased to be part of this community, my name is Juan and I got the following problem:
    When my father tries to dial a mobile phone number (from his blackberry) starting with 32, phone adds a plus sign like if he was actually dialing an international number.
    I mean, if he dials 321 815 5634, we get the following result: +321 815 5634
    Hope someone could give me a clue on how to solve this.
    Thanks in advance,
    Juan

    Hi Juan,
    Welcome to BlackBerry Support Community Forum.
    tanzim                                                                                  
    If your query is resolved then please click on “Accept as Solution”
    Click on the LIKE on the bottom right if the post deserves credit

  • HELP!! me plz with this little Java problem

    Created program for course
    Need to put program on disk for handing in however images used in the program are referenced to the C: drive.
    The images are in the exact same location as the class files so only need to have a relative location set for them.
    But how can this be done????
    Plz help..
    Message was edited by: Me
    Student_Dundee

    The first thing you need to do is change your code to include filepaths to your images that are relative to your class files.
    You said that the images are in the same directory as your class files that use them as a resource so you should have no problem just changing the file paths to file names.
    Next you need to package your program including all packages, class files and images into a JAR file.

  • Problem with this code...please help

    The following code is what I've written for a routing system.
    - I get machines passed to my class from the 'Machine' class.
    How I integrate them into my array is on of the problems that I'm encountering.
    This class accepts food from the Machine class, asks the machine to check the size of the first queue, then adds the food to the shortest queue (via the Machine class).
    In the simulation food is being given to the packing machine which contains the shortest queue.
    package routingSystem;
    public class Router {
    //attributes.
    private int numberOfMachines = 2; //length of array.
    private Machine machineArray[]; //this array is of type Machine.
    private Food processedFood; //Food item received from the
    processing machines
    private Machine packingMachine; //The machines that get passed into
    //this class - need to use
    //these in the code ?????
    //Constructor.
    public Router() {
    Machine machineArray[] = new Machine[numberOfMachines];
    addMachine();
    public void run() {
    int temp = machineArray[0].numberItemsWaiting();
    //assign the first size to a temp value with which the other machines queue size can be compared with.
    for (int i = 0; i<numberOfMachines; i++){
    machineArray[i] = new Machine(/** find out parameters from */); //check this line....
    if (machineArray[1].numberItemsWaiting() > temp) {
    machineArray[0].addItem(processedFood);
    } else {
    machineArray[1].addItem(processedFood);
    if (machineArray[0].size() == machineArray[1].size()) {
    machineArray[0].addItem(processedFood);
    //takes the machines as a parameter from the Machine class...
    public void addMachine(Machine machine) {
    packingMachine = machine;
    run();
    I'd appreciate any imrovements that you can spot, it just isn't right, the packing machine attribute that I've created isn't being used with the array correctly??
    cheers....

    public Router() {
    /*Machine*/ machineArray[] = new Machine[numberOfMachines];
    addMachine();
    }There may be more wrong...

  • Charging is not supported with this accessory help me please

    help me please

    - See:      
    iPod touch: Hardware troubleshooting
    - Try another cable. Some 5G iPods were shipped with Lightning cable that were either initially defective or failed after short use.
    - Try another charging source
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Make an appointment at the Genius Bar of an Apple store.
      Apple Retail Store - Genius Bar 

  • I have a 2g ipod touch with the 4.2.1 update. I can barely find any apps that work with this. Can you please let me know some of the apps that will work?

    Please help.

    To more easily find compatible apps:
    iOSSearch - search the iTunes store for compatible apps.
    Apple Club - filter apps by iOS version.
    App Store: Downloading Older Versions of Apps on iOS - Apple Club

  • Bought more Ram!  This little guy is IMPRESSIVE!  Where can I sell old Ram?

    I just got 2 1GB Ram chips. Anyone know where I can sell my old 512x2 chips? Thanks
    If there's no splace that specializes in it, I guess I'll just do Craigslist or Ebay, but thought I'd ask on here first.
    But I have to say I am super impressed with this little guy. I have iTunes going, Photoshop running, grabbing files from my other computer on the network, have final cut pro 6 open editing HDV footage!, have iPhoto open running through pics, MS Word 2004 open and Cabos downloading some stuff!
    And I have 644 MB of Ram left over. And everything's running really well! I am so impressed. I really never expected this from something that, well, isn't supposed to be doing all this.
    If you're in the market for this laptop, I really recommend it!

    Ram is so cheap right now it is hard to sell used RAM and get a price that makes it worthwhile.
    I always keep my old RAM. If something goes wrong with my computer and I need to trouble shoot it I sometimes place the old RAM in to rule out the new RAM as being the problem. If something happens to the new RAM and I need to send it in for warranty I can put the old RAM in and keep running.

  • Cannot Download Instagram/Redownload Unavailable with this Apple ID

    I have two Instagram accounts, one personal, one professional. I.e., two separate/different Instagram IDs and two different passwords for each Instagram account.
    I have two cell phones, one for work (iPhone 6+) and one for personal (iPhone 5s). If it matters, the phones have two separate wireless company accounts, as well.
    Each phone has its own iCloud/iTunes ID.
    I purchased the iPhone 5s last May 2014, and the iPhone 6+ in December 2014. Thus, all of my personal accounts were set up on the iPhone 5s, first.
    I have the two phones set up on Apple's "family sharing" via iTunes, in order to access and share some of my data, calendars, etc.
    I have Instagram set up on the iPhone 5s. I can login in to either of my two Instagram accounts on the 5s, but I do have to login/logout of the app and reenter each ID and password for each Instagram account.
    I want to install Instagram on the iPhone 6+ that I use for "work"  with my professional Instagram account. When I try to download the app to the iPhone 6+, I get the message that "Redownload Unavailable with this Apple ID." Please see the attached image.
    I have tried different methods, but I cannot download Instagram to the iPhone 6+. Instagram says to go to Apple Support (https://help.instagram.com/126971294119253/) and Apple Support, as far as I can tell, considers this a 3rd party app and it isn't their problem).
    I have looked at some solutions -- such as logging out of iCloud and iTunes on each phone, and then logging back in and downloading the Instagram app, but it appears that I will lose the data I have on the iCloud for each phone, if I login/logout of iCloud and iTunes on each phone.
    http://appletoolbox.com/2014/09/family-sharing-working-redownload-unavailable-ap ple-id-fix/
    family sharing is not working
    This is completely stupid -- surely individuals within families have their own Instagram accounts and post from their own phones. And this is a free app!
    Any suggestions as to how to download Instagram to my iPhone 6+ that don't involve losing any data?
    Thank you!

    Thanks, Kappy, that made the lightbulb go off.
    Here's what I did.
    (1) Synced my iPhone 5s with iTunes.
    (2) Uninstalled the Instagram app from the 5s.
    (3) Re-synced the 5s with iTunes both to my laptop and the iCloud, since it now does not have Instagram on it.
    (4) On the iPhone 6+, loggedout of iTunes that has my "work" AppleID.  (Settings ==> iTunes & App Store ==> Apple ID: <apple ID here>; tapped on Apple ID:, then an image came up, and I logged out of that Apple ID, which is my "work" Apple ID.
    (5) Logged into the iPhone 6+  iTunes & App Store with my personal Apple ID and password
    (6) Downloaded Instagram.
    (7) Set up Instagram with my "work" Instagram userid and password.
    (8) Logged out of my personal AppleID for the  iTunes & App Store on the iPhone 6+, and logged back in with my "work" Apple ID.
    (9) Re-installed Instagram on my iPhone 5s and synced it with iTunes using my personal Apple ID.
    (10) Set up Instagram with my "personal" Instagram userid and password.
    I don't know if I needed to sync and re-sync the iPhone 5s that way, plus uninstall Instagram on it. I may have added extra steps here, but better safe than sorry.
    I do think that the key to solving this problem was logging out of the iTunes & App Store with my work AppleID, and the logging back in with my personal Apple ID to download the Instagram app, then logging out from my personal Apple ID and logging back in with my work Apple ID.
    On each phone, I had no problem setting up each of the separate Instagram accounts. It was just getting the Instagram app to download to the second phone set up with Family Sharing.
    I don't understand why I had to do it this way, but I guess Instagram only wants one owner of the App. Weird. I have not had to do this with any other apps I have downloaded under my "work" account and phone that I also have on my "personal" account and phone. For some of those, I use the same account ID; others, like Instagram, are separate.
    I hope this solution helps someone else, too.
    -- Silverfern

  • FRM-47001: Cannot create parameter list aamir : list with this name exists.

    Sir I use parameter list in my form whose name aamir first time when I call report system give result right but second time I call report then system give this error
    FRM-47001: Cannot create parameter list aamir : list with this name exists.
    Please give me idea how I get print view second time
    Thank
    aamir

    Hello aamir,
    Use the following to delete existing parameter.
    DECLARE pl_id ParamList;
    BEGIN
    pl_id := Get_Parameter_List('tempdata');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List(pl_id);
    END IF;
    END;
    Cheers,
    Suresh

Maybe you are looking for