diff options
author | Mykyta Holubakha <hilobakho@gmail.com> | 2017-06-08 03:34:08 +0300 |
---|---|---|
committer | Mykyta Holubakha <hilobakho@gmail.com> | 2017-06-08 03:34:08 +0300 |
commit | 1e9ba4fda8486136991152d7af2bfe65c0e52c69 (patch) | |
tree | 83a0998170e68271a1fad8e90748ab238cc9ea9d /pomu/util | |
parent | Fix multiple issues with packages and repositories (diff) | |
download | pomu-1e9ba4fda8486136991152d7af2bfe65c0e52c69.tar.gz pomu-1e9ba4fda8486136991152d7af2bfe65c0e52c69.tar.bz2 pomu-1e9ba4fda8486136991152d7af2bfe65c0e52c69.zip |
Hook up sources, repo and dispatcher
Implement initial package recording, uninstalling
Diffstat (limited to 'pomu/util')
-rw-r--r-- | pomu/util/fs.py (renamed from pomu/util/string.py) | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pomu/util/string.py b/pomu/util/fs.py index b7c2334..f5f448c 100644 --- a/pomu/util/string.py +++ b/pomu/util/fs.py @@ -1,6 +1,7 @@ """ -String utils +Filesystem utils """ +import os def strip_prefix(string, prefix): """Returns a string, stripped from its prefix""" @@ -8,3 +9,7 @@ def strip_prefix(string, prefix): return string[len(prefix):] else return string + +def remove_file(repo, dst): + repo.index.remove(dst) + os.remove(dst) |