From 2d2b60a704f832093e35a67623db86f19fbe6aae Mon Sep 17 00:00:00 2001 From: OusmBlueNinja Date: Sat, 26 Aug 2023 21:26:25 -0500 Subject: [PATCH 1/5] Update builtin.py --- packages/builtin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/builtin.py b/packages/builtin.py index 6442cec..79f2a13 100644 --- a/packages/builtin.py +++ b/packages/builtin.py @@ -94,9 +94,9 @@ def ll(args): file_stat = entry.stat() file_name = entry.name - - pw = pwd.getpwuid(file_stat.st_uid) - gr = grp.getgrgid(file_stat.st_gid) + if os.name != 'nt': + pw = pwd.getpwuid(file_stat.st_uid) + gr = grp.getgrgid(file_stat.st_gid) is_hidden = (file_name and file_name[0] == '.') From c4d78b7879a4d125a22d8d985a9c011570a32f92 Mon Sep 17 00:00:00 2001 From: OusmBlueNinja Date: Sat, 26 Aug 2023 21:28:03 -0500 Subject: [PATCH 2/5] Update main.py --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 8469bc1..dbc68f4 100644 --- a/main.py +++ b/main.py @@ -6,7 +6,8 @@ from inspect import isfunction import random import time import ast -#import readline +if os.name != "nt": + import readline import threading From 9ff414e5398bdddb89bd5055bf983198b5831dc9 Mon Sep 17 00:00:00 2001 From: OusmBlueNinja Date: Sat, 26 Aug 2023 21:36:57 -0500 Subject: [PATCH 3/5] modified: .gitignore modified: main.py --- .gitignore | 3 ++- main.py | 2 +- packages/__pycache__/builtin.cpython-311.pyc | Bin 6999 -> 7035 bytes 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 5a560a4..9687327 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ \__pycache__ -\pakk.conf \ No newline at end of file +\pakk.conf +.pyc \ No newline at end of file diff --git a/main.py b/main.py index dbc68f4..3c4f999 100644 --- a/main.py +++ b/main.py @@ -159,7 +159,7 @@ class packagemanager: print(f"\n{color.green}Success:{color.white} Successfully installed {name}.") except Exception as e: - raise Exception(e) + raise Exception(f"{color.red}{e}") diff --git a/packages/__pycache__/builtin.cpython-311.pyc b/packages/__pycache__/builtin.cpython-311.pyc index 231d389bed1bd0bf8ac4549b9642deb3d0a14b5d..0405caf6a01f268e81615556073f7157cee6a666 100644 GIT binary patch delta 238 zcmca^_S=kiIWI340}veD_$tM3BX1z1oMEz6OlWaxQE^OhL26!dj7w^9c1eCgOh{@` zZb0PbM#d>T94lBE7^X9nFibXJ7MX0wHQqMP?9Ng%QM71+%rdyakz0nFx9FFrVgO M^%mSLB<0Eo0P=W8UH||9 delta 215 zcmexucHNA3IWI340}wQ?eU+lTkvEW0*(}*ACbT%Us5qviw5TK}#wE2lyClCLCM2~e zHy~0sH!(ABa}DDZ9>$Kzf_z)p)oM9vI2N!@UMHk9`5m9&W_f-g7A6hO$@*Lto3n-6 zn3%pZPyQ_0toD_SK}>Q=%mU3TN=6q&jjxCrPhh$$DuE`ld8t?=vxOAHK@ksaFJ9(T w4BTE)45xTmyad@#2{MD&B8(umD3~q9<;}=^N=3-ahWV5Yt2g6jGbvX_0FkRfB>(^b From 101bf6ed1c8bf447ae493d8a3f552f8094bf1a3a Mon Sep 17 00:00:00 2001 From: OusmBlueNinja Date: Sat, 26 Aug 2023 21:37:18 -0500 Subject: [PATCH 4/5] deleted: packages/__pycache__/builtin.cpython-310.pyc deleted: packages/__pycache__/builtin.cpython-311.pyc deleted: packages/__pycache__/echo.cpython-311.pyc deleted: packages/__pycache__/nano.cpython-310.pyc deleted: packages/__pycache__/netget.cpython-310.pyc deleted: packages/__pycache__/netget.cpython-311.pyc deleted: packages/__pycache__/python.cpython-310.pyc --- packages/__pycache__/builtin.cpython-310.pyc | Bin 3216 -> 0 bytes packages/__pycache__/builtin.cpython-311.pyc | Bin 7035 -> 0 bytes packages/__pycache__/echo.cpython-311.pyc | Bin 379 -> 0 bytes packages/__pycache__/nano.cpython-310.pyc | Bin 2567 -> 0 bytes packages/__pycache__/netget.cpython-310.pyc | Bin 594 -> 0 bytes packages/__pycache__/netget.cpython-311.pyc | Bin 1073 -> 0 bytes packages/__pycache__/python.cpython-310.pyc | Bin 425 -> 0 bytes 7 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 packages/__pycache__/builtin.cpython-310.pyc delete mode 100644 packages/__pycache__/builtin.cpython-311.pyc delete mode 100644 packages/__pycache__/echo.cpython-311.pyc delete mode 100644 packages/__pycache__/nano.cpython-310.pyc delete mode 100644 packages/__pycache__/netget.cpython-310.pyc delete mode 100644 packages/__pycache__/netget.cpython-311.pyc delete mode 100644 packages/__pycache__/python.cpython-310.pyc diff --git a/packages/__pycache__/builtin.cpython-310.pyc b/packages/__pycache__/builtin.cpython-310.pyc deleted file mode 100644 index a6f5181f89b7c6093cbbce0af443be6e9381d443..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3216 zcmaJ@&u<&Y72cU$?k<-#-aIQrWfI@mPa>=!SK@a^87U(I5!U2k&indBx^?S3F9NBU?+?hA? z-oAM|^Sy5-s#H7!zZ-w}N_;kH7++H7+dm7PxA4RYl`sVB8Y_9rR+#Sd6|P%z#ni2} zVhQdSgz4LBmas(OV{63`ws1Z+R$Srwg*7gU!oz4$ltdY$o~Vc_+LD+UTh+uQ`enhE zjmFdy%xo-XPS20yX4}tf>8ni{wiu0%eo&J)u(%C zmJLapk0szyOv~Dfe&si~tYR>;$nA3x$lf%RF~#h%GPCyN6vRW5(}x{Q{xUk-22HDs z4i{{L%ZlI>08KBt zb{fxkVdj_~ITVx$HGQjIkuM-9tjR-00mbD6NI7K)j^K_d*5M2-k)3=uz}HV7A39hF57-W?QrION`{4cOVqFQn`-@PJ(ASf9v;6INWY~bxm6D% zRbPuXLvdmE*iXW`FC~nkR%=sAUo6xc#mwybVZP25dC5Hge!m%t&DfWj)4Utgpe$fQ z?8>?bWHxynxLAzTb#nU-In0Xh+;91P6+|KStW36U=nq!4KlVI^TH+Qdw;Nrb*uu?2HPZf%7vMl!b&Y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?j8vEy>5X*jDqdzPP$qa1?BIecXodb#x)6Z^_G4!L_TlYq_>N HRi6DH2OZ)& diff --git a/packages/__pycache__/builtin.cpython-311.pyc b/packages/__pycache__/builtin.cpython-311.pyc deleted file mode 100644 index 0405caf6a01f268e81615556073f7157cee6a666..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 7035 zcmb_hYitzP6~6P>-Pxz#c#W}H2LoA?7hoVUE+od3U@SwiqbA0Yd)Y3$X(n{SyTV*wpTcj#K(qC(ZNXSyvo^xm4 z2Aa~|9iMyd``kPCe&@U6x4m8$f$-6<{~-_567qLUH+DMxj_>2evaJ_n0!<-9aD;`j*Tm(ohsT4jfOZZ%LN<6Xv!BOAg&N6 z(Mn2XE?JVwwSY(`*C7AhLRoo=gDDS^ZGis zn7&|&O6XjSx}muj`#At&fn<5XR<$a57ehZd_q}t8S;MzA?b~WdfwUAz<)6D*p0ibD zB;TTa(SG;tT~&g%uRXGZT;q2MWlMy{u_eM9SI9h@)H~e3JLDbC6vybeYS~Y5YnXgQ zr8S_`!Jp~@u|P7CCu=7*=R)rnkS3<>Y&fE*WnU&Q3Z-{g7^gKeYn{*je3>C7jLA z#G<$=xt5%X_SdVHsutmw74k(Cc0Rec`9n~GOLT9;H7L!8lEc7FvV%c+nU8X^P&qlA zT2LIIxIU&3im0Y76j8=#P@oN%Wmhk#nlfdI(XlCoRzX(D`=HH`W}*cPf*{xnSrzS< zkN=RqIh$;M<5J?%qOz#095ckuwAh)-KO5&+I4ysImvNvyUzcF{Ip`lEHsMq z^E{3$6Vzt8S&~C1#{k9GvChqZj^}L7{{lj0S0E$@x~IpqbB6*kii!ET`ra^ALRySo z2t;FA;B0IrDnGGa_gplfPzse|q0kJairf_lI!z&>M6F#aVlSpkIX^uXm1h9uOvl)( zDrQo|71-0~ABR_6kZe6Wwc=N!gb=z;% zZBK@bx{h>R$D*_-tvWr6L$5b2H6_Nr*Scucx^no9!^zGS?yUnx-L7=qF0A*Nb7%6oly4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8`wv5ZKB z*jCJ<61<7u=Wm(A=-{S-VYFDV*knOPNTyu=Y32*|l&JoO>hVB@+ zOVhwvJ~$mkzA*ft zW?Go3*_kVt2{7|5_SHum#A4%MDCk6u2pbBJwNN#ILm8~tp==wz2ia$-PP6S05gBR(ewf(EZY`vDs$ zf-DwHL zc5C5l%8jJ}!bH0kH%^jCaGs2{#5eUM+eZ|~a160>f&fpAODMf(z4{a~S5XQ=Wfq2h z%-y%;!jy@}xSz6;Zb28YR+4Ut;W6TwIB9Q<49y!YQDq-L9v~@6Md|hZ3w(yT>nH^! z)_HzP^|3!ssV222sy8suOjE|iPl{y(6ky~oM0UAaoWQ-y)Rhd7W;2j=Z3qeJEzz|h zeX|M@SNfBHY1KOAM-{mVv=ET~0-}T81r#gmi}^|nSGBCh+BK||=O?6|+E3}( zLC#f|Az>WkTMN%Ark)}BsM2QwoNBrKK4@2Pz}F}?Tg~%JpyvWeTP{xdjc!^6Mh5|f zCyv4>icBMl`nlZiQNI~Qd;4*(T2Ykx)H$kb0Ig7u_@T&0igZrh!$uK34vHK{l($cH zfaDptK`rou#lUMicJ%`Xp5)6->_Y?~Ht-fWstNaqi4(LKJ6i0x(m_63lrFNUS7lM@ zU!)hq8!_ZUJ`|CUr?xh<>_ac0tZ7+T>sU{f7k(`8;ID=B;D~`g2_Ig$Y5Fi4WunZ^lmN- pyfK3QWi+|EVb4)knN>j(Q)iq&ZGxMX>u%9a3ks(|%!=lX{{U^YBzFJ+ diff --git a/packages/__pycache__/netget.cpython-310.pyc b/packages/__pycache__/netget.cpython-310.pyc deleted file mode 100644 index fc19843ddfc95366b3730223962b3d116c95e985..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 594 zcmYjP&2H2%5T3D}Y=G|e=L8Z5i`z;-9spD!Ar4#$Qjt&>^$^9TyJ`{#+pB7$^t7Ci z`UDkHd*qdT;KFJ92t6_0EvOUCk7qvn`{Kk5hYx`)T->PN2=FH^?i;7Y8*=xIf&zsV zOg0%OsF-G7nc_-(7Za}V5XQ-haBvU?rK#(pQ6(Mv-vm_;$lsE?9~3-j&fpfwrL78)%;xY+%NP z)GeIX^;p=bBXD93S!K$?&rD+n)cXZ?MCtZ}?DqC725 zw96aqiSK2*2`s!VpBSnKooGNJw6%y>qzY;Uy;PwJwx)+Av)0(nZaTXmHf$k6 z4?zk>P+BNLPZjCKf1&;b8_6Lo1O)L=4-)7l^yJ&LNn=sp&i>x#y!p+WkC8|SflPn? z$$nvkzWYvFgd=1BJQ(YUA%=A{cc}3kW`ZU>6PUOv&4~=ppoFyNZ21`N1 zjwoP>@b5o?=sL2yat^Zn%#k=~8*)3H{5H_oX;VS?zqJf6wmR{F?*2^pvm=Hp%peCb z@pSu8w1UBxx_luBd4_ahMRdfiE`FUY$ia?qlAYiA0S!!T{i%)FtSDoZF{Aj{K+?TNZ(c#>c1k#^P# z-_K-CZr|nHVjq^4b6t5N3+YGd}#6k=;Ke)ssa?z4=Gr> z`2I>c|90}-WJRJ?iMkT4E1}Z0SI(+aUizvGyUK8#MBLuX6*68W<1QJmk=~O0Ei_P$ ztz9bKsr5z6OKXMVy@sF!Vl^^U3j1G;^t_3@j+9dy6BQD#lDOMm&3ZW6KsYdV40RG( z3%Y|N8y5gzZA~2N3K^}EQMYR~Bpisf_?)W{S|!x&TFqwD8ib4O4xPC*hIYr|w-e%* zXg?s#wg(cP2&48SJ#E>oQG7!C5JkKn;DAhKOqSENn>-4x|IF46fQE=MZpaAt6??nC ShTM;1<*5b&^-tiZpu=yiFY=K9 diff --git a/packages/__pycache__/python.cpython-310.pyc b/packages/__pycache__/python.cpython-310.pyc deleted file mode 100644 index 9c688e685e4dd55250e0bda6ccd5aa598b079c17..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 425 zcmZWku}T9$5S`iEJC9(3rGiM>1NDADM6j_6f;L_w$L*R#bGOItDkLP8{(xzNkd*$? zwpRKH!NS=jMZkgg9y9MT!>DGn0aWkPAMs22<(utd)LanEA&~%q1IX5j844zXH^`X4 z8%X#!C7@HFmrVtv5#f?xu80KAVGIkLpv5^`z=YXAurcj9fEfrr#ulpmgb4>(Kp+)TXa07uLF8S;v%d zkr^5*%Or3-*Inayp@eiho8%|xCM{kbr#)55)b`{^RWkLN^j7Nf`Yx^W;wkS+ldf-^ x)Tl3N<0tbxqr%VqCK|D{s4%UVQByW From 0837f6c5fd462a040788f2aaae31b282397ed10f Mon Sep 17 00:00:00 2001 From: OusmBlueNinja Date: Sat, 26 Aug 2023 21:41:15 -0500 Subject: [PATCH 5/5] Fixed pip package --- packages/pip.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/pip.py b/packages/pip.py index dad2025..b29cc0f 100644 --- a/packages/pip.py +++ b/packages/pip.py @@ -5,17 +5,18 @@ import os, sys def pip(command: list): - print(command, len(command)) + #print(command, len(command)) if len(command) != 1: print("comand requires [ package_name ] [ args (optional) ] ") return package = command[0] try: - from pip._internal import main as pipmain - pipmain(['install', {package}]) - except ImportError: - os.system(f"pip install {package}") + print("Running pip from shell") + os.system(f"python -m pip install {package}") + except Exception as e: + print(e) + except: print("cannot download")