remove-package --source-only doesn't do as advertised

Bug #1031061 reported by Adam Conrad
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-archive-tools
Fix Released
Undecided
Unassigned

Bug Description

Earlier today, I did the following:

(base)adconrad@cthulhu:~/utouch$ remove-package -m "Renamed to evemu" -S utouch-evemu
Removing packages:
 utouch-evemu 1.0.9-0ubuntu1 in quantal
Comment: Renamed to evemu
Remove [y|N]? y
1 package successfully removed.
(base)adconrad@cthulhu:~/utouch$ remove-package -m "Renamed to frame" -S utouch-frame
Removing packages:
 utouch-frame 2.2.3-0ubuntu1 in quantal
Comment: Renamed to frame
Remove [y|N]? y
1 package successfully removed.
(base)adconrad@cthulhu:~/utouch$ remove-package -m "Renamed to geis" -S utouch-geis
Removing packages:
 utouch-geis 2.2.10-0ubuntu1 in quantal
Comment: Renamed to geis
Remove [y|N]? y
1 package successfully removed.
(base)adconrad@cthulhu:~/utouch$ remove-package -m "Renamed to grail" -S utouch-grail
Removing packages:
 utouch-grail 3.0.5-0ubuntu1 in quantal
Comment: Renamed to grail
Remove [y|N]? y

I had assumed, both from how the previous remove-package.py worked, as well as from the --help text, that this would leave the old binaries in the archive, so we could transition smoothly and then reap them from the NBS list.

Unfortunately, the API seems to have different ideas about this, and forces the deletion of binary children:

14:06 < Laney> hah, comment in LP's source:
14:06 < Laney> # Special deletion method for the api that makes sure binaries
14:06 < Laney> # get deleted too.

Filing this as an ubuntu-archive-tools bug for now, as maybe it's just a question of not trying to do that, though this functionality is actually pretty handy for doing soft transitions by intentionally orphaning binaries so they show up on reports, so perhaps it's ultimately an LP bug to extend/fix the API as well.

Related branches

Adam Conrad (adconrad)
summary: - remove-package --only-source doesn't do as advertised
+ remove-package --source-only doesn't do as advertised
Revision history for this message
Colin Watson (cjwatson) wrote :

I think this may have been pretty deliberate; I remember wgrant indicating as much. Personally I wouldn't be opposed to just dropping this option from remove-package ...

Revision history for this message
Adam Conrad (adconrad) wrote :

From the comment in the LP code, I'd say it's fairly obviously deliberate. On the other hand, being able to remove just source can be a handy (if hackish) feature. I wouldn't be against just dropping the option and pretending we can't do that, though.

Revision history for this message
Colin Watson (cjwatson) wrote :

revno: 564
fixes bug: https://launchpad.net/bugs/1031061
committer: Colin Watson <email address hidden>
branch nick: ubuntu-archive-tools
timestamp: Fri 2012-08-03 10:16:53 +0100
message:
  remove-package: remove --source-only option, since Launchpad doesn't support it over the API

Changed in ubuntu-archive-tools:
status: New → Fix Released
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.