[MacPorts] #2684: RFE: add version glob handling to port clean
--dist
MacPorts
trac at macosforge.org
Fri Dec 28 10:10:21 PST 2007
#2684: RFE: add version glob handling to port clean --dist
-----------------------------------+----------------------------------------
Reporter: rshaw at opendarwin.org | Owner: macports-tickets at lists.macosforge.org
Type: enhancement | Status: new
Priority: Normal | Milestone: MacPorts base enhancements
Component: base | Version:
Resolution: | Keywords:
-----------------------------------+----------------------------------------
Old description:
> Hi Robert! Just wanted to make a short suggestion/request. Would it be
> possible to include the
> ability to provide either an exact version or a glob pattern to other
> than the '--archive' switch of the
> clean target? I just attempted an update of my installed ports and found
> myself still doing a lot of
> manual cleaning, specially with distfiles. Here's why I ask:
>
> $[juan at PowerBook: juan](25/0,1)-> ls
> /opt/local/var/db/dports/distfiles/adium/
> total 28768
> -rw-r--r-- 1 root admin 6M 25 Jan 00:24
> AdiumX_Source_0.75.1.tar.gz
> -rw-r--r-- 1 root admin 7M 31 Jan 23:48 AdiumX_Source_0.76.tar.gz
>
> $[juan at PowerBook: juan](26/0,1)-> sudo port -d clean --dist adium 0.75.1
> DEBUG: Found port in
> file:///usr/local/OpenDarwin/darwinports/dports/aqua/adium
> DEBUG: Changing to port directory:
> /usr/local/OpenDarwin/darwinports/dports/aqua/adium
> DEBUG: Requested variant powerpc is not provided by port adium.
> DEBUG: Requested variant darwin is not provided by port adium.
> DEBUG: Skipping com.apple.main (adium) since this port is already
> installed
> ---> Cleaning adium
> DEBUG: Executing com.apple.clean (adium)
> ---> Removing distfiles for adium
> DEBUG: Removing file:
> /opt/local/var/db/dports/distfiles/adium/AdiumX_Source_0.76.tar.gz
> 1 distfile(s) removed.
> DEBUG: Removing directory: /opt/local/var/db/dports/distfiles/adium
> 1 distfile directory(s) removed.
>
> $[juan at PowerBook: juan](27/0,1)-> ls
> /opt/local/var/db/dports/distfiles/adium/
> ls: /opt/local/var/db/dports/distfiles/adium/: No such file or directory
>
> I tried to remove *only* the 0.75.1 Adium distfile in a similar
> fashion as I would have done with
> the archives, but instead all of them were nuked in one go along with
> distfiles/adium dir. Can this be
> improved?
>
> Regards,...
>
> Juan
New description:
Hi Robert! Just wanted to make a short suggestion/request. Would it be
possible to include the ability to provide either an exact version or a
glob pattern to other than the '--archive' switch of the clean target? I
just attempted an update of my installed ports and found myself still
doing a lot of manual cleaning, specially with distfiles. Here's why I
ask:
{{{
$[juan at PowerBook: juan](25/0,1)-> ls
/opt/local/var/db/dports/distfiles/adium/
total 28768
-rw-r--r-- 1 root admin 6M 25 Jan 00:24
AdiumX_Source_0.75.1.tar.gz
-rw-r--r-- 1 root admin 7M 31 Jan 23:48 AdiumX_Source_0.76.tar.gz
$[juan at PowerBook: juan](26/0,1)-> sudo port -d clean --dist adium 0.75.1
DEBUG: Found port in
file:///usr/local/OpenDarwin/darwinports/dports/aqua/adium
DEBUG: Changing to port directory:
/usr/local/OpenDarwin/darwinports/dports/aqua/adium
DEBUG: Requested variant powerpc is not provided by port adium.
DEBUG: Requested variant darwin is not provided by port adium.
DEBUG: Skipping com.apple.main (adium) since this port is already
installed
---> Cleaning adium
DEBUG: Executing com.apple.clean (adium)
---> Removing distfiles for adium
DEBUG: Removing file:
/opt/local/var/db/dports/distfiles/adium/AdiumX_Source_0.76.tar.gz
1 distfile(s) removed.
DEBUG: Removing directory: /opt/local/var/db/dports/distfiles/adium
1 distfile directory(s) removed.
$[juan at PowerBook: juan](27/0,1)-> ls
/opt/local/var/db/dports/distfiles/adium/
ls: /opt/local/var/db/dports/distfiles/adium/: No such file or directory
}}}
I tried to remove *only* the 0.75.1 Adium distfile in a similar
fashion as I would have done with the archives, but instead all of them
were nuked in one go along with distfiles/adium dir. Can this be improved?
Regards,...
Juan
--
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/2684#comment:6>
MacPorts </projects/macports>
Ports system for Mac OS
More information about the macports-tickets
mailing list