Pkgfile rewritten in python with new feature

hi.
I have made a rewrite of pkgfile from the pkgtools package in python to speed up search by using a sqlite db file.
$ pkgfile -h
Usage: pkgfile [ACTIONS] [OPTIONS] filename
Options:
--version show program's version number and exit
-h, --help show this help message and exit
-b, --binaries only show files in a {s}bin/ directory. Works with -s,
-l
-c, --case-sensitive make searches case sensitive
-g, --glob allow the use of * and ? as wildcards.
-r, --regex allow the use of regex in searches
-L, --local search only in the local pacman repository
-v, --verbose enable verbose output
ACTIONS:
-i, --info provides information about the package owning a file
-l, --list list files of a given package; similar to "pacman -Ql"
-s, --search search which package owns a file
-u, --update update to the latest filelist. This requires write
permission to /var/cache/pkgtools/lists
A new feature is that it does not download files list if there is no new update, saving bandwidth.
It's a fork on github so you can try it there git://github.com/solsticedhiver/pkgtools.git
Or just change the _gitroot variable to git://github.com/solsticedhiver/pkgtools.git in the PKGBUILD for pkgtools-git from AUR
I exchanged with Daenyth which showed some interest for it. And made me correct my style code ;-). But we're still waiting for him to accept the pull request on github (to a new branch in its git repo ?), and to possibly merge it upstream later.
Tell me what you think about it.
If you find bugs, you could report it on github.

After just changing the _gitroot make complained:
==> Starting make...
rm: cannot remove `/home/karol/test/t1/pkgtools-git/src/pkgtools-build': No such file or directory
Aborting...
'touch pkgtools-build' "fixed it" ;P
Core, extra, community and local repo were OK, but I got errors for other repos:
:: Checking [heftig] for files list ...
:: Downloading http://archlinux.ro/~heftig/repo/i686/heftig.files.tar.gz ...
:: Converting [heftig] file list ...
Error: Unable to open /tmp/tmpxe6Gjg.gz
:: Checking [xyne-any] for files list ...
:: Downloading http://xyne.archlinux.ca/repos/xyne-any/xyne-any.files.tar.gz ...
:: Converting [xyne-any] file list ...
Error: Unable to open /tmp/tmpt1QgB0.gz
:: Checking [unarch] for files list ...
:: Downloading http://us4all.info/unarch/arch/i686/unarch.files.tar.gz ...
:: Converting [unarch] file list ...
Error: Unable to open /tmp/tmpcbuuaW.gz
:: Checking [archlinuxfr] for files list ...
:: Downloading http://repo.archlinux.fr/i686/archlinuxfr.files.tar.gz ...
:: Converting [archlinuxfr] file list ...
Done
:: Checking [archstuff] for files list ...
:: Downloading http://archstuff.vs169092.vserver.de/i686/archstuff.files.tar.gz ...
:: Converting [archstuff] file list ...
Error: Unable to open /tmp/tmpycP5bc.gz
:: Checking [arch-games] for files list ...
:: Downloading http://pseudoform.org/arch-games/games/i686/arch-games.files.tar.gz ...
:: Converting [arch-games] file list ...
Done
:: Checking [dragonlord] for files list ...
:: Downloading http://repo.dragonlord.cz/arch/i686/dragonlord.files.tar.gz ...
:: Converting [dragonlord] file list ...
Error: Unable to open /tmp/tmpy5RGe8.gz
Can I just post here or do I have to report it on github?
This pkgfile implementations still takes about 30s to find what I'm looking for but does so w/o thrashing my disk - good work :-)
Last edited by karol (2010-09-17 13:55:22)

Similar Messages

  • I have bought OSX Lion 1 month back, and now new OS is getting released, there will any updates for the OSX with new features or I have again buy it paying $20, Please let me know??

    I have bought OSX Lion 1 month back paying $29.99, and now new OS is getting released, there will any updates for the OSX Lion with new features or I have to again buy it paying $19.99, Please let me know??

    http://www.apple.com/osx/uptodate/

  • What is the best way to communicate my displeasure with new features?

    tl;dr How can I complain to FireFox about the new search bar in new tabs? (Or other new features)
    I've seen a question or two here about this new feature already, and it's quite obvious that the developers at FireFox are not exactly interested in what their users think of this particular feature.
    The feature I'm referring to is the new search bar in the New Tab.
    I've attempted a fix mentioned in a previous post (create a sub-directory 'Chrome' and create a CSS file containing specific style commands) and it did not work. I've tried a couple of other fixes mentioned on third party websites as well, to no avail.
    Knowing that FireFox would add something like this without allowing an option to disable it is quite disheartening. I've been enjoying my daily use of FireFox over other browsers I had used in the past because they were cluttered and unclean, and at the time FireFox was not. This search bar has ruined that. My pinned tabs have been squashed to roughly half their original size, and the search bar is unsightly, at best.
    Correct me if I'm wrong, but don't we already have a search bar at the top of the screen? I fail to see any purpose in this, except to annoy users. If there is a further purpose, please inform me (though to be completely honest, it will not change my opinion here, though it may soften the damage done)
    As of yet, there have been very few features in FireFox that I have been displeased with, and each of them was shortly followed by an add-on to disable them (Or they had come with an option for disabling upon release)
    I'm not here asking for help as to how to remove the search bar, I'm here asking for a link that I can use to directly inform the developers of FireFox of my opinions regarding this update.
    On a third party site I read an article that claimed one of the developers made mention of an option for users to disable this search bar... According to the article, he never received a reply.
    That gets me thinking, if FireFox won't listen to it's own team, should we expect them to listen to us?
    I'm quite close to simply leaving FireFox because of this feature, as now it's little better than what I've left behind in the past. PaleMoon was nice, though a bit slower.
    I'm not saying that I'm going to stop using FireFox, only that I'm quite put off because of what I've read, and the lack of an option to disable this feature.
    If such an option exists already, please give me instruction as to how to do so, and then kindly disregard this query.
    Thank you for taking the time to read this and have a nice day,
    Dillon P.

    Sorry I am only another Firefox user and do not really see anyway of helping you with this quest.
    You may use feedback and make short comments.
    * https://input.mozilla.org/feedback
    *And see comments made from the interactive page https://input.mozilla.org
    Statistical data from the comments are made available to developers and others.
    AFAIK no one from Mozilla is likely to wish to engage in conversations about newly introduced features or deliberate feature regressions. Developers did post on the forum for a day or two after the introduction of Firefox 29 (Australis) but did not hang around and the subject of Firefox development is again considered to be off topic and outside the scope of this forum.
    The forum manager who will confirm this is off topic is Madalina. (Listing & contact details https://support.mozilla.org/en-US/kb/meet-team )
    This is a link [/questions/998084#answer-566525] relating to one developers comments from back when it was on topic.
    The mailinglists and blogs can be seen here
    * https://www.mozilla.org/about/forums/#general-development
    * Nearly always closed for comments but https://blog.mozilla.org
    ** https://blog.mozilla.org/ux/
    if you do discover anywhere where staff welcome discussion and engage with end users please let us know.
    I will tag this post as '''escalate''' so that at least it is seen by HelpDesk staff maybe they are aware of some method end users may use to engage in dialogue, besides posting one way input comments.
    IIRC there was talk of listing any such resources if they were discovered, so that we could post more helpful replies than this one.
    We do not specifically deal with hacks to Firefox on this forum but will try to help with advice, mainly saying use addons. Please continue to post if you have direct questions you think we may be able to assist with.

  • How to fix apps not updating with new features?

    Today I tried updating my apps with the Adobe Application Manager, however, I recevied an an message with PhotoShop “Installation complete though some recommended components failed to install correctly. (U44M1P6)” I noticed that not only did PhotoShop not install correctly, but none of the new features with Muse, InDesign, and Illustrator are available either. What could be the problem?

    This should help. http://forums.adobe.com/message/5154476

  • Glitch with new Feature?

    So here's my problem:
    I just got a new 5g iPod and put all my music on it. I always scroll through my songs by looking at the Artist, and I noticed that some of my songs didn't seem to copy to my iPod. Upon closer examination and experimentation, I realized that apparently, when I only have one song by an artist, it jumps straight past through the "Album" selection (which makes sense because clearly you only have on album).
    Now I think this could be a nice new feature and all but... there are some artists with multiple songs that still jump straight past the album selection. This only seems to occur if I have one song that I've bought off of iTunes and then maybe a few songs that I have ahem gotten from other sources. The iPod will jump straight to the album with the one song that I've gotten off of iTunes.
    Now, this isn't a huge problem, as the songs are still on the iPod (I can access them by just looking at the "Songs" menu) but I tend to go by artist. The iPod is fully up to date and brand new, so I'm not sure what could be the problem. I've tried resetting it (as the five "R"'s suggest) but to no avail. Anyone got any ideas?
    30Gb iPod 5g   Mac OS X (10.4.4)  

    Well, everything looks right, and it certainly worked fine on my old iPod (who lived a nice long life). Is there a way to turn it off so that I can just select the "all" selection for the Albums? I've gone looked through all of the settings in iTunes and on the iPod, but there seems to be nothing. Some setting that I could change in Terminal maybe?
    eMac 1.42Ghz   Mac OS X (10.4.4)  

  • UPDATE: iMovie 1.1 with new features.

    I just downloaded the new iMovie 1.1 for my iPhone4 and there are lots of new features.
    • Split Video Clips
    • Music Track now loops the duration of the Project
    • Tips page
    and much more...
    Thank you Apple.

    @Resist Here is a link to all the new features:
    http://itunes.apple.com/us/app/imovie/id377298193?mt=8#
    Look at the "*What's New In Version 1.1*" section and click the "...More" button.

  • Monitoring HDV via SD monitor with new feature in FCP6?

    Is anyone using the new FCP6 HDV>SD Monitoring feature successfully?
    I have been checking the boards, but haven't heard any feedback yet.
    Ok, I know, even I get tired of this topic, and I do realize that an MXO box and an I/O Board is the way to go for HDV monitoring. However, I was curious about the prospect of FCP6 providing a Firewire preview of HDV sequences to a SD monitor, but so far I am pretty disappointed with the result. I do get moving images on my SD monitor, but they are low-rez and low FPS.
    Wondering if its my hardware or other setup issue, or it this feature still basically unavailable? If anyone can at least report that it works for them, I'll explore my setup further. Any suggestions are of course appreciated as well.
    Dual G5 2.0, Dual 23" Cinema Displays, 2.5 GB RAM   Mac OS X (10.4.10)   FCP 6.0.1, DVDSP 4.0.3, HVR-Z1U, HVR-HC3, HVR-M10U

    I have a HDV timeline, View option set to Firewire NTSC, and the Firewire out to my HDV Deck (set up, however, as a DV deck through the deck menu). It's the basic FCP>Camera>Monitor setup that I've always used for monitoring DV footage, but FCP6 promised to do it for HDV.
    I'm still wondering if it is even possible to get it to work the same...

  • Possibility to create full responsive websites with new features

    Hi guys!
    I think that Muse would be incredible and very professional if the develop team include the possibility to create full responsive websites, with no more problem even in the height of a site, expecially if you wanna create an horizontal scroll website.
    Another great fature is the Bootstrap 3, that could be used in some layout and templates... Add more widget, like in a CMS and obviously it would be great if you can use very full-responsive icons.
    What do you think about it, guys?

    Fully responsive would be great. 
    I love the new updates from Muse, especially the library, state buttons, and ability to create mega menus....   However, I've been building more of my websites with Wordpress due to the lack of Responsive design.  If Muse adds that capability, along with at least basic additions to the CMS (clients being able to add hyperlinks, link documents, modify H1,2,p text, etc), I'm likelly to go all in. 

  • Samsung Galaxy 5 Lollipop update issues with new features

    I am having various problems with the new update to my phone. Any advice for the issues below is greatly appreciated.
    1) Is there a way to get my tabs BACK into Chrome? Having to go to my task manager to get a different tab or close the current one is time consuming and annoying. I want to be able to toggle between tabs and close tabs while I'm in the Chrome application.
    2) I use Messages for my text message application. Currently, If I have a message open and I receive another message from that same person, there is no notification. Before the update, I would get a notification of any texts. Unless I exit the message group, I do not get any notification. Is there a setting change that I can apply so I always get notified? This issue has cause me to miss various texts and have delayed responses because I am not actively staring at the phone.
    3) Is there a way to override the settings on the Mute sound? Typically, a person will put their phone on mute and set their alarm to wake them up. With the new update, I have to set mute, go to settings, set the interruptions time to 1, 2, 4 or 8 hours. This inevitably ends up with my phone starting to buzz with vibrations well before my alarm is set to go off. I can set alarm to priority, but Mute always cancels all interruptions. Having to go through 4 steps to get my alarm set each night, along with getting vibration notifications is not practical.

    mathnerd79,
    We certainly want to see you enjoy your device. I can see how getting accustomed to new software can be cumbersome. I'd like to be sure that were are on the same page, what software version number is your device showing? http://www.verizonwireless.com/support/knowledge-base-97648/
    SandyS_VZW
    Follow us on Twitter @VZWSupport
    If my response answered your question please click the "Correct Answer" button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

  • I have downloaded the garage band update version 1 to my macbook with osx but the old version of garage band is what boots up, New features are not present.

    I have downloaded the new version of Garageband in an update to my new 2014 macbook with osx but it does not open with new features. It si still the original window for the app. Help. I reviewed the updates menu and it says it was installed.

    I have the older 6.0.5. Looks like I'm way behind the newer version, and will need to download the 10.0.2. Will I still be able to access all of my own recordings after downloading the new version?
    Yes, the newest GarageBand can open the projects from GarageBand 6.0.5.
    GarageBand 10.0.2 is very different from GarageBand 6.0.5, it is more like a light version of Logic. It brings new features like drummers and arpeggiators, but dropped other importaant features like podcasts or the sound effect instrument.  So you will want to keep both versions installed.
    When you upgrade to 10.0.2, the installer will move your current 6.0.5 to a subfolder of Applications. On no account delete it, until you are perfectly happy with the new version. I am still starting my projects in GarageBand 6.0.5, set everything up with the easy to use GB '11 interface, and then add the finishing touches, drummers etc., in GarageBand 10.0.
    Note: GarageBand 10.0 is free, but it is not a full version; you will have to make an in-app purchase to get lessons, instruments, loops. With GB '11 still installed, this should be free.  See this document:  Expanding GarageBand for Mac (v10.0) content with an in-app purchase

  • Forms Developer 10g Release 2 - new features?

    Hi,
    Does anybody know if Forms Developer 10g Release 2 (10.1.2) is any different from Forms Developer 10g (9.0.4)?
    I wasn't able to find a document with new features.

    <p>I am sure the link was under your eyes ;o)
    <br>
    http://www.oracle.com/technology/products/forms/techlisting10gR2.html<br>
    Oracle Forms 10g Technical Overview</p>

  • Cisco Technical Support v3.7 - New Features

    Accurately Update Installed Location. The Cisco Tech Support mobile application—available for Apple or Android—provides smartphone and tablet access to critical Technical Services support such as support documentation, service request creation and update, serial number scan and lookup, and contract entitlement.
    Now we have enhanced this robust application with new features for Cisco Support Contract holders. It’s easier than ever to search for support cases, including by RMA number. Push notifications let your customers know when a TAC engineer is assigned to a case opened in the mobile app. Tap on the notification, and we'll launch the app and take you straight to your support case.  And, you can easily and accurately update device Installed base information with a click. Simply scan the Cisco product bar code using a mobile device’s camera and, at the prompt, use the GPS function of the mobile device to pinpoint the installed location of that device. Or, if preferred, input the address manually. As soon as the location information is verified and associated with your customer’s service contract, they’ll be sure to receive faster, more accurate service. And you and Cisco will have more complete and accurate customer information for service and renewals.
    Have you not tried the app before? The app is broken into two types of content - Entitled and Non-Entitled. If a user has an active support contract they can:
    View, Update (add notes and attach photos) and Create Cisco Support Cases. If you open a case through the app, we'll send you a push notification when a TAC Engineer has been assigned. Tap on the push notification, and we'll launch the app, and bring you straight to the case in question.
    View RMA Details tied to a support case
    Contact your assigned TAC Engineer, Field Engineer and On-Site Contact (later two for RMAs) directly by phone or email
    Look up entitlement info by serial number. A bar code scanner is provided to make it easier to capture the info
    View list of contracts you are associated with. Tap on the "calendar icon" to add a reminder in your calendar 90 & 60 days prior to the contract expiring (some partners have indicated this is a nice sales reminder)
    Access to a mobile version of Bug Search Tool
    Non Entitled users can:
    View Externalized TAC Authored Content (TAC Support Docs)
    Have access to aggregated support information (config guides, data sheets, installation instructions, etc), software downloads and community content specific to a model via "Product Information" then "Select a Product"
    Access to support related videos, podcasts (includes TAC Security Podcast) and RSS Feeds (includes several several nice security related feeds).
    Related Links:
    iOS Download Link: Cisco Technical Support on the App Store on iTunes
    Android Download Link: Cisco Technical Support - Android Apps on Google Play
    User Guide:  http://www.cisco.com/web/fw/tools/tsmap/UserGuide_iPhone.pdf
    More than happy to answer any questions you may have.
    Regards,
    Dave Dubé
    Product Manager
    Cisco Services

    thanks for bringing the Cisco support app.
    it works good and easy to use. thanks you Cisco and Team.
    Potha

  • My Snow Leopard 10.6.3 has Safari 4.0.4 but this cannot be used for the new features of iTune.  I tried upgrading to Safari 5.1.7 but it needs Snow Leopard 10.6.8.  Where can I get a version of Safari 5.1 that is compatible with Snow Leopard 10.6.3?

    My Snow Leopard 10.6.3 has Safari 4.0.4 but this cannot be used for the new features of iTunes.  I tried upgrading to Safari 5.1.7 but it needs Snow Leopard 10.6.8.  Where can I get a version of Safari 5.1 that is compatible with Snow Leopard 10.6.3?

    Hi..
    here can I get a version of Safari 5.1 that is compatible with Snow Leopard 10.6.3?
    Not possible. You need to update to v10.6.8
    Click your Apple menu > Software Update
    Or update using the this download > Mac OS X 10.6.8 Update Combo
    Then restart your Mac.

  • How can i delete the new feature "get in contact with your favourite persons"?? When u press the "home" button twice, theres a list on top of the ipad with the last persons youve been in contact with. How do i delete that, or some of them ;-)

    How can i delete the new feature "get in contact with your favourite persons"?? When u press the "home" button twice, theres a list on top of the ipad with the last persons youve been in contact with. How do i delete that, or some of them ;-) Sorry for the danish  

    You can turn that feature off in Settings>Mail, contacts, calendars>Contacts>Show in App Switcher>Recents>Off.

  • What are new features in BCS 6.0 compared with earlier versions?

    Hi,
    What are new features in BCS 6.0 compared with earlier versions. Can someone tell in few lines .. just the summary and we can find the docs since it is not seen in service.sap.com.
    Many thanks,
    Regards,
    Ricardo Ferrã

      Hi Fancia Luo
    You can find the file which is suggested by Dan is available in the below link
    https://websmp105.sap-ag.de/~form/handler?_APP=00200682500000002672&_EVENT=DISPLAY&_SCENARIO=01100035870000000122&_HIER_KEY=501100035870000016962&_HIER_KEY=601100035870000210480&_HIER_KEY=601100035870000237998&_HIER_KEY=601100035870000238002&_HIER_KEY=701100035871000517655&
    If the above link is not helpful.  Please follow the complete path to find the specified file.
    https://websmp105.sap-ag.de/sem ---> SAP ERP Financials --> Financial Close --> Business Consolidation --> Media Library -->  Select Release Information.  Under this you can find the file SEM BCS 747 - Overview and Positioning of New Features.
    Regards
    Rajesh SVN

Maybe you are looking for

  • Can we load data simultaneously in ODS by various infopackage

    Hi Experts, I just wanted to ask that Can we trigger paralel load in ODS  by various infopackabyge, once I tried to load two files at the same time in ODS with 2 different package, I was able to load the files, the request id were different for both

  • Is it possible to have more than one Tax code per line item in Billing docu

    Is it possible to have more than one Tax code per line item in Billing document ?

  • Please help me on java Logger......

    Hi, can anyone give me a good tutorial link on java Logger? one more doubt, In logging, in the log file the info is saved in XML format. How can i change it to normal text format? pls help..... -Soni.

  • GRC AC V10 - UAR config steps

    Hi together, I didn't find any config guide or input for the configuration of UserAccessReview UAR. Can anybody mention the most import steps and jobs? The RKT info is not that detailed. Thanks, Alexa

  • Where to store pictures?

    Iam using this version of SDK: Product Version: Java(TM) ME Platform SDK 3.0 Java: 1.6.0_16; Java HotSpot(TM) Client VM 14.2-b01 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (cdctoolbar) Userdir: C:\Users\Azmath\javame-sdk\toolbar\