[26446] in Source-Commits

home help back first fref pref prev next nref lref last post

Re: /svn/athena r25578 - trunk/debathena/scripts

daemon@ATHENA.MIT.EDU (Geoffrey Thomas)
Wed Jun 6 17:19:08 2012

Date: Wed, 6 Jun 2012 14:19:06 -0700 (PDT)
From: Geoffrey Thomas <geofft@MIT.EDU>
To: Jonathan D Reed <jdreed@MIT.EDU>
cc: source-commits@MIT.EDU
In-Reply-To: <201206062105.q56L5uZN006370@drugstore.mit.edu>
Message-ID: <alpine.DEB.2.00.1206061418410.9393@dr-wily.mit.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

Oh, clever. ACK

-- 
Geoffrey Thomas
geofft@mit.edu

On Wed, 6 Jun 2012, Jonathan D Reed wrote:

> Author: jdreed
> Date: 2012-06-06 17:05:56 -0400 (Wed, 06 Jun 2012)
> New Revision: 25578
>
> Modified:
>   trunk/debathena/scripts/dasource
> Log:
> Don't build UNRELEASED packages
>
> Modified: trunk/debathena/scripts/dasource
> ===================================================================
> --- trunk/debathena/scripts/dasource	2012-06-06 20:50:27 UTC (rev 25577)
> +++ trunk/debathena/scripts/dasource	2012-06-06 21:05:56 UTC (rev 25578)
> @@ -73,6 +73,13 @@
>     svn co $repo/$pkgpath $dir
>   fi
>
> +  # Ensure that we're not trying to do something stupid
> +  distribution=$(cd $dir && dpkg-parsechangelog | sed -n 's/Distribution: //p')
> +  if [ "$distribution" = "UNRELEASED" ]; then
> +    echo "You can't/shouldn't build a package marked as UNRELEASED."
> +    exit 1
> +  fi
> +
>   # Extract the changelog version and strip off the epoch and Debian component.
>   changever=$(cd $dir && dpkg-parsechangelog | sed -n 's/Version: //p')
>   sver=$(echo $changever | sed -re 's/^[0-9]+://p')
>
>

home help back first fref pref prev next nref lref last post