andrewsomething@ubuntu:~$

Just another Ubuntu weblog

Wading upstream

with 3 comments

So I want to start making an effort to share more of the little tips, tricks, and scripts that I use in the course of Ubuntu development. Hopefully someone will find this stuff useful. On the other hand, I also hope someone will come along, look at what I use, and point out just how wrong it is and show me something simpler.

Potomac Wayside Falls Upstream

To start off with, here’s a function from my ~/.bashrc file. Gmail has an unfortunate insistence on forcing line breaks. This can be an issue when working with the Debian BTS as you need to interact with the control server through one line commands sent via email. The place where this is always the most painful for me has been in marking bugs as forwarded upstream. So I figured I’d make my life easier by just doing it on the command line:

function bts-forward () {
    if [[ "$1" == ${1//[^0-9]/} && "$2" == http* ]]; then
        echo "forwarded $1 $2" | \
        sendmail -f"$DEBEMAIL" control@bugs.debian.org;
    else
        echo "Usage: bts-forward DEBIAN_BUG UPSTREAM_URL"
    fi
    }

Written by andrewsomething

November 12, 2011 at 4:08 pm

Posted in Ubuntu

Tagged with , , ,

3 Responses

Subscribe to comments with RSS.

  1. There’s bts(1) present in the devscripts package for that. Rather than bts-forward, it would be “bts forward 12345 http://blahblahblah“. It also works for pretty much every other control@bugs.debian.org command as well. I personally use the manpage as an offline bugs.debian.org reference.

    hyperair

    November 12, 2011 at 6:16 pm

    • Well there you go. I guess we’ll just file this one under “someone will come along, look at what I use, and point out just how wrong it is and show me something simpler.”

      Thanks!

      andrewsomething

      November 12, 2011 at 6:22 pm

  2. Hello, Andrew. I wanna ask you. I have found a little bright in the darkness about my problem here:

    http://stackoverflow.com/questions/4419268/how-do-i-download-a-package-from-apt-get-without-installing-it/4935836#4935836

    at the answer apt-get -d -o=dir::cache=/tmp whateveryouwant. Okay, my problem was here: http://ubuntuforums.org/showthread.php?t=2123602.

    Now my question is: how to make apt-get -d -o download not from online repo but only from my /var/cache/apt/archives? My cache was complete for (say) 8 applications installed. I have set it to keep cache.

    I am waiting for your answer. I know you have enough capability in case you have both @debian.org and @ubuntu.com email. Thank you so much from Indonesia.

    Ade Malsasa Akbar

    March 19, 2013 at 4:31 pm


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: