Coder Social home page Coder Social logo

fpkg's People

Contributors

boris-dimov avatar kaper365 avatar suppabreak avatar tuhkis avatar

Stargazers

 avatar  avatar  avatar

Forkers

tuhkis

fpkg's Issues

Add "purge unused packages" option

This will have to wait 'till we have a working dependencies system, but once we've done it, we should implement functionality to check every package by name if it's a dependency for others or not.

Ofc, there are still "top-level" packages that aren't a dependency for anything else, but we can think of a way to specifically mark those (in the metadata file maybe).

Package metadata

I think every archive with a package should contain a simple text file, which describes things like name, version, dependencies, author etc. We just have to agree on a format, i.e. what it will contain.

Also it would be nice if the archive contained a list of where each file / directory should land, i.e. where in the FS it should be copied to.

This is just future-proofing stuff.

Add "fast mode" to fpkg

It's nice to have the delays in fpkg and all, but sometimes you just want to get things done quick.

I propose we do it the following way: we crate our own function in place of sleep (call it 'sleepy' or sth), which will check if a command-line variable (say 'fast') is present, and call or not call sleep with the appropriate duration.

Add cleanup code

Describe le bug
Currently our code has no cleanup functionality, which is bad. We should def look into this.

Handle packages with the same names

When we continue expanding the repos, there's a possibility of two or more repos containing a package with the same name. In that case we should prompt the user which one to install.

It's just that when we search for the package in our local lists, we should take ALL entries, not just the first one, and print them as list if there is more than one.

Keep track of files installed by packages

Bc packages almost always contain more than a single file, would be good to have a place where to keep track of all the files installed by various packages.

For example: we create a dir at /etc/fpkg/; there, we will have configs etc, but also a subdir 'packages'; in this subdir, there will be a directory with the package name, which will hold a file named fileslist or sth, where on each line there will be the full path to the installed files from this package.

I think this will make removal cleaner. Also, the package dir can hold other things like metadata.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.