[Bug 1071025] [NEW] do-release-upgrade allows both -d and -p switches although neither takes effect

Brian Murray brian at ubuntu.com
Wed Oct 24 21:02:58 UTC 2012


Public bug reported:

13:59:33 - flash:[/tmp] do-release-upgrade -h
Usage: do-release-upgrade [options]

Options:
  -h, --help            show this help message and exit
  -V, --version         Show version and exit
  -d, --devel-release   Check if upgrading to the latest devel release is
                        possible
  --data-dir=DATA_DIR   Directory that contains the data files
  -p, --proposed        Try upgrading to the latest release using the upgrader
                        from $distro-proposed

There is no documentation nor an error message if you use both the -d
and -p switches.  However, if you look at MetaRelease.py you will see
the following:

        # devel and proposed "just" change the postfix
        if useDevelopmentRelease:
            self.METARELEASE_URI += self.METARELEASE_URI_UNSTABLE_POSTFIX
        elif useProposed:
            self.METARELEASE_URI += self.METARELEASE_URI_PROPOSED_POSTFIX

by using both -d and -p you get neither.  As there is no meta-release
file for meta-release-development-proposed there should be an error
message if you use both arguments at the same time.

** Affects: ubuntu-release-upgrader (Ubuntu)
     Importance: Medium
         Status: New


** Tags: quantal

** Changed in: ubuntu-release-upgrader (Ubuntu)
   Importance: Undecided => Medium

** Tags added: raring

** Tags removed: raring
** Tags added: quantal

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/1071025

Title:
  do-release-upgrade allows both -d and -p switches although neither
  takes effect

Status in “ubuntu-release-upgrader” package in Ubuntu:
  New

Bug description:
  13:59:33 - flash:[/tmp] do-release-upgrade -h
  Usage: do-release-upgrade [options]

  Options:
    -h, --help            show this help message and exit
    -V, --version         Show version and exit
    -d, --devel-release   Check if upgrading to the latest devel release is
                          possible
    --data-dir=DATA_DIR   Directory that contains the data files
    -p, --proposed        Try upgrading to the latest release using the upgrader
                          from $distro-proposed

  There is no documentation nor an error message if you use both the -d
  and -p switches.  However, if you look at MetaRelease.py you will see
  the following:

          # devel and proposed "just" change the postfix
          if useDevelopmentRelease:
              self.METARELEASE_URI += self.METARELEASE_URI_UNSTABLE_POSTFIX
          elif useProposed:
              self.METARELEASE_URI += self.METARELEASE_URI_PROPOSED_POSTFIX

  by using both -d and -p you get neither.  As there is no meta-release
  file for meta-release-development-proposed there should be an error
  message if you use both arguments at the same time.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1071025/+subscriptions




More information about the foundations-bugs mailing list