Opened 6 years ago

Last modified 2 weeks ago

#10529 assigned enhancement

[Tracker] add Package field to Info window

Reported by: diver Owned by: leavengood
Priority: normal Milestone: Unscheduled
Component: Applications/Tracker Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description (last modified by diver)

It would be nice to be able to identify from which package a particular file came from. For instance you're in /bin and you wan't to understand which package a certain binary belongs to. Currently there's no (easy) way to do that and Info window seems to be a logical place to get this information from. Make it clickable so it gets selected in Tracker window.

Change History (9)

comment:1 Changed 6 years ago by diver

Description: modified (diff)

comment:2 Changed 6 years ago by pulkomandy

There's a non-easy way:

~> catattr SYS:PACKAGE_FILE /bin/notify 
/bin/notify : string : haiku-r1~alpha4_pm_hrev46847-1-x86_gcc2.hpkg

comment:3 Changed 6 years ago by bonefish

And an easy way:

~> findpaths -p /bin/notify B_FIND_PATH_PACKAGE_PATH
/boot/system/packages/haiku-r1~alpha4_pm_hrev46831-1-x86.hpkg

The Tracker feature can be easily implemented using the BPathFinder API which is also used by findpaths.

comment:4 Changed 6 years ago by diver

How about having an additional Tracker column disabled by default? This way it would be possible to sort files by package.

comment:5 Changed 4 years ago by waddlesplash

Milestone: R1Unscheduled

Moving Tracker enhancement tickets out of R1 milestone -- Tracker's source code comes from BeOS R5, so it already has all the features it did on R5.

comment:6 Changed 2 years ago by axeld

Owner: changed from axeld to nobody
Status: newassigned

comment:7 Changed 3 weeks ago by leavengood

Owner: changed from nobody to leavengood

I will take a look at this, and maybe also adding the column as diver suggested. I am still learning my way around Tracker, but so far, so good.

comment:8 Changed 3 weeks ago by pulkomandy

Hi,

Rather than showing just this specific thing, I would say the Info window should have an extra tab listing all the attributes of the file. This will include the SYS:PACKAGE_FILE mentionned above and also a lot more info about the file.

I think this would be more generic and useful in other cases as well.

comment:9 Changed 2 weeks ago by humdinger

+1 to another tab with a list of all attributes (though that'd be an extra ticket...)

IMO, the clickable path to the origin package is useful enough to warrant an entry on the 1st tab.

Note: See TracTickets for help on using tickets.