Bug 532713 - shortrpm should accept "--clean" only option
Summary: shortrpm should accept "--clean" only option
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: shortrpm
Version: 12
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Lubomir Rintel
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-03 16:01 UTC by Mamoru TASAKA
Modified: 2009-12-01 04:26 UTC (History)
1 user (show)

Fixed In Version: 1.2-2.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-12-01 04:26:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mamoru TASAKA 2009-11-03 16:01:32 UTC
Description of problem:
Currently shortrpm does not accept "--clean" only option.
----------------------------------------------
[tasaka1@localhost SPECS]$ env LANG=C shortrpm --clean jd.spec
RPM version 4.7.1
Copyright (C) 1998-2002 - Red Hat, Inc.
This program may be freely redistributed under the terms of the GNU GPL

Usage: shortrpm [-v?] [-bp] [-bc] [-bi] [-bl] [-ba] [-bb] [-bs] [-tp] [-tc] 
...
...
----------------------------------------------

However rpmbuild accepts this:
----------------------------------------------
[tasaka1@localhost SPECS]$ env LANG=C /usr/bin/rpmbuild --clean jd.spec 
Executing(--clean): /bin/sh -e /home/tasaka1/rpmbuild/INSTROOT/rpm-tmp.7uMZZ5
+ umask 022
+ cd /home/tasaka1/rpmbuild/BUILD
+ rm -rf jd-2.5.0-beta091103
+ exit 0
----------------------------------------------

It is preferable that shortrpm accepts "--clean" only option.

Version-Release number of selected component (if applicable):
shortrpm-1.2-1.fc12.i686

How reproducible:
100%

Steps to Reproduce:
1. See above
2.
3.

Additional info:
shortrpm accepts "--clean --rmsource --rmspec", for example,
however does not accept "--clean" (only).

Comment 1 Lubomir Rintel 2009-11-03 16:29:48 UTC
This is not exactly a RFE, rather a regular bug.
I attempted to fix it in shortrpm-1.2-2 package, could you please try it?

http://koji.fedoraproject.org/koji/taskinfo?taskID=1785384

If it works, I'll submit an update for F-12.

Comment 2 Mamoru TASAKA 2009-11-03 17:05:01 UTC
(In reply to comment #1)
> http://koji.fedoraproject.org/koji/taskinfo?taskID=1785384

This works, thank you!

Comment 3 Bug Zapper 2009-11-16 15:00:00 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle.
Changing version to '12'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 4 Mamoru TASAKA 2009-11-28 10:28:09 UTC
By the way are there any plans that the fixed shortpm will be
pushed into F-11/12 stable repositories?

Comment 5 Fedora Update System 2009-11-29 10:20:39 UTC
shortrpm-1.2-2.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/shortrpm-1.2-2.fc12

Comment 6 Fedora Update System 2009-12-01 04:26:51 UTC
shortrpm-1.2-2.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.