From 5719a5c9de568743093afbc2dcf25b85fde6110d Mon Sep 17 00:00:00 2001 From: Filip Rojek Date: Sun, 23 Apr 2023 16:23:26 +0200 Subject: [PATCH] updated: README.md;renamed: genPkgRel.sh;fix: del --- README.md | 1 + debrepo | 4 +++- scripts/{addPackage.sh => genPkgRel.sh} | 0 3 files changed, 4 insertions(+), 1 deletion(-) rename scripts/{addPackage.sh => genPkgRel.sh} (100%) diff --git a/README.md b/README.md index 9a02663..1990f17 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ __Warning! This software is still under development and is not intended for stab - [x] create del feature - [ ] multiple repositories feature - [ ] signing repositories using GPG +- [ ] make simple way to edit repository info in release file ## About `Debrepo` is a software tool designed for creating and managing Debian repositories for `*.deb` packages, providing a lightweight and user-friendly alternative to more complex tools like `reprepo` or `aptly`. While these alternatives may offer more advanced features, Debrepo focuses on providing essential functionality and ease of use for repository management, allowing users to easily add, remove, and update packages within their repositories. With Debrepo, users can efficiently manage their Debian repositories without the unnecessary complexity of more advanced tools. diff --git a/debrepo b/debrepo index cabbeb2..06938a8 100755 --- a/debrepo +++ b/debrepo @@ -11,12 +11,14 @@ if [ "$1" = "add" ] || [ "$1" = "-a" ] || [ "$1" = "--add" ]; then # copy deb file to repo folder structure cp "./$2" "./apt-repo/pool/main/" # generate package and release file - $DIR/scripts/addPackage.sh $2 && echo "debrepo: package $2 was successfully added" + $DIR/scripts/genPkgRel.sh $2 && echo "debrepo: package $2 was successfully added" exit fi if [ "$1" = "del" ] || [ "$1" = "-d" ] || [ "$1" = "--del" ]; then rm -i "./apt-repo/pool/main/$2" && echo "debrepo: package $2 was successfully removed" + # generate package and release file + $DIR/scripts/genPkgRel.sh $2 && echo "debrepo: repository was successfully updated" exit fi diff --git a/scripts/addPackage.sh b/scripts/genPkgRel.sh similarity index 100% rename from scripts/addPackage.sh rename to scripts/genPkgRel.sh