mps-hp
This commit is contained in:
parent
4327d95e06
commit
8a8204391e
1 changed files with 12 additions and 0 deletions
12
bin/mps
12
bin/mps
|
@ -1070,6 +1070,11 @@ kurulum_dosya_listele(){
|
||||||
cat "$VT/$1/kurulan"
|
cat "$VT/$1/kurulan"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# bir dosyanın kurulmuş hangi pakette olduğunu bulur.
|
||||||
|
kurulan_dosya_bul(){
|
||||||
|
grep -rli "$1" "$VT/" | cut -d "/" -f6
|
||||||
|
}
|
||||||
|
|
||||||
paketvt_kontrol(){
|
paketvt_kontrol(){
|
||||||
mkdir -p /depo/paketler
|
mkdir -p /depo/paketler
|
||||||
if [ ! -f /depo/paketler/paket.vt ];then
|
if [ ! -f /depo/paketler/paket.vt ];then
|
||||||
|
@ -1435,6 +1440,13 @@ ayarlar() {
|
||||||
fi
|
fi
|
||||||
ayar_dosyasi="$2"
|
ayar_dosyasi="$2"
|
||||||
shift ;;
|
shift ;;
|
||||||
|
# bir dosyanın kurulmuş hangi pakette olduğunu bulur
|
||||||
|
-hp)
|
||||||
|
if [ ! "$2" ]; then
|
||||||
|
ryaz 31 "paket ismi eksik"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
kurulan_dosya_bul "$2";;
|
||||||
-tro)
|
-tro)
|
||||||
tarihce_yap ;;
|
tarihce_yap ;;
|
||||||
-trot)
|
-trot)
|
||||||
|
|
Loading…
Add table
Reference in a new issue