updated: README.md;renamed: genPkgRel.sh;fix: del

This commit is contained in:
Filip Rojek 2023-04-23 16:23:26 +02:00
parent 834651e6ef
commit 5719a5c9de
3 changed files with 4 additions and 1 deletions

View File

@ -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.

View File

@ -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