DIST= error wrongly suggests DISTRO=

Bug #120477 reported by Tommy Trussell
4
Affects Status Importance Assigned to Milestone
Prevu
Invalid
Undecided
Unassigned

Bug Description

Using prevu for first time so I'm still learning. I successfully backported gnucash from gutsy against Feisty. (I"m running feisty.) I'm running the version of prevu that installs from synaptic under feisty -- version 1:0.4.1bzr46-0ubuntu2

I wanted to try backporting to Edgy so I entered

  DIST=edgy sudo prevu gnucash

The script halted and told me it wasn't ready for edgy, It told me I needed to type this first:

  DISTRO=edgy sudo prevu-init

I followed its suggestion, and it initialized FEISTY again.

CORRECTION -- line 51 of /usr/bin/prevu

if not os.path.exists('/var/cache/prevu/%s.tgz' % self.target_distro): raise NoBuildEnvironment("Not ready to build for %s. You need to run 'DISTRO=%s sudo prevu-init'." % (self.target_distro, self.target_distro))

should be changed to

if not os.path.exists('/var/cache/prevu/%s.tgz' % self.target_distro): raise NoBuildEnvironment("Not ready to build for %s. You need to run 'DIST=%s sudo prevu-init'." % (self.target_distro, self.target_distro))

Revision history for this message
John Dong (jdong) wrote :

Thanks for the bug report; I will commit this fix soon

Changed in prevu:
status: Unconfirmed → Confirmed
dino99 (9d9)
Changed in prevu:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.